Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Family ¶ added in v1.5.0
type Family []*Metric
Family represents a set of metrics with the same name and help text.
type FamilyGenerator ¶ added in v1.5.0
type FamilyGenerator struct { Name string Help string Type MetricType GenerateFunc func(obj interface{}) Family }
FamilyGenerator provides everything needed to generate a metric family with a Kubernetes object.
type MetricType ¶ added in v1.5.0
type MetricType string
MetricType represents the type of a metric e.g. a counter. See https://prometheus.io/docs/concepts/metric_types/.
var MetricTypeCounter MetricType = "counter"
MetricTypeCounter defines a Prometheus counter.
var MetricTypeGauge MetricType = "gauge"
MetricTypeGauge defines a Prometheus gauge.
Click to show internal directories.
Click to hide internal directories.