telemetry

package
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricPusher

type MetricPusher interface {
	// Perform any vendor specific setup.
	// If there is none, return nil
	Configure() error

	// Register gauge
	Register(name string, desc string)

	// Push gauges to storage backend
	Push() error

	// Add metric label
	AddLabel(key string, value string)

	// Increment gauge by one
	Increment(name string)

	// Increment gauge by arbitrary values
	Add(string, float64)

	// Set gauge to current unix time
	SetToCurrentTime(string)

	// Reset gauge
	Reset(string)
}

MetricPusher provides an interface for Push based telemetry collection

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL