Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstMetricCollector ¶
type ConstMetricCollector interface { Describe(chan<- *prometheus.Desc) Collect(chan<- prometheus.Metric) Store(time.Time, Sample) Clear(time.Time) }
type GaugeCollector ¶
type GaugeCollector struct {
// contains filtered or unexported fields
}
func NewConstGaugeCollector ¶
func NewConstGaugeCollector(mapping Mapping) *GaugeCollector
func (*GaugeCollector) Clear ¶
func (c *GaugeCollector) Clear(now time.Time)
func (*GaugeCollector) Collect ¶
func (c *GaugeCollector) Collect(ch chan<- prometheus.Metric)
func (*GaugeCollector) Describe ¶
func (c *GaugeCollector) Describe(ch chan<- *prometheus.Desc)
type MetricsVault ¶
type MetricsVault struct {
// contains filtered or unexported fields
}
func NewVault ¶
func NewVault() *MetricsVault
func (*MetricsVault) RegisterMappings ¶
func (v *MetricsVault) RegisterMappings(mappings []Mapping) error
func (*MetricsVault) RemoveStaleMetrics ¶
func (v *MetricsVault) RemoveStaleMetrics()
type Sample ¶
type Sample struct { // ID is a sample unique id e.g., labels hash, uuid. ID string // Labels are label values in determined order. Labels []string // Value is a sample latest sample value. Value float64 // Timestamp is the time sample was collected. // Events exporter will collect the expired sample basing on this field. Timestamp time.Time }
Click to show internal directories.
Click to hide internal directories.