Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Registry func(src GMetricSource, metrics []GMetric) error
Registry is a variable of type func(src GMetricSource, metrics []GMetric) error. It is used to register metric sources with the promExporter.
Functions ¶
Types ¶
type GMetric ¶
type GMetric interface {
// contains filtered or unexported methods
}
GMetric is an interface that represents a generic metric. User defined metrics must implement this interface
type GMetricSource ¶
type GMetricSource interface {
GetMetrics(ch chan<- GMetric)
}
GMetricSource is an interface for objects that provide metrics.
type MetricCommons ¶
type MetricCommons struct { Name string // Name of the metric Help string // Help string for Prom metric description Device string // Device name (gnmi client) Type prometheus.ValueType Value float64 }
MetricCommons represents a common set of keys of a metric used in the application. Metric sources must embed this structure into their user defined metrics
type StaticLabel ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.