Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct {
MetricType MetricType
// Vectors key is the hash of the label names
Vectors map[NameHash]*Vector
// Metrics key is a hash of the label names + label values
Metrics map[ValueHash]*RegisteredMetric
}
type MetricHolder ¶
type MetricHolder interface{}
type MetricType ¶
type MetricType int
const ( CounterMetricType MetricType = iota GaugeMetricType SummaryMetricType HistogramMetricType )
type RegisteredMetric ¶
type RegisteredMetric struct {
LastRegisteredAt time.Time
Labels prometheus.Labels
TTL time.Duration
Metric MetricHolder
VecKey NameHash
}
type Vector ¶
type Vector struct {
Holder VectorHolder
RefCount uint64
}
type VectorHolder ¶
type VectorHolder interface {
Delete(label prometheus.Labels) bool
}
Click to show internal directories.
Click to hide internal directories.