Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Family ¶
Family represents a set of metrics with the same name and help text.
type FamilyInterface ¶
FamilyInterface interface for a family
type Metric ¶
type Metric struct { // The name of a metric is injected by its family to reduce duplication. LabelKeys []string LabelValues []string Value float64 }
Metric represents a single time series.
type Type ¶
type Type string
Type represents the type of a metric e.g. a counter. See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md#metric-types.
var Counter Type = "counter"
Counter defines a OpenMetrics counter.
var Gauge Type = "gauge"
Gauge defines a OpenMetrics gauge.
var Info Type = "info"
Info defines an OpenMetrics info.
var StateSet Type = "stateset"
StateSet defines an OpenMetrics stateset.
Click to show internal directories.
Click to hide internal directories.