Documentation ¶
Index ¶
- Constants
- func HasLabel(labels []*dto.LabelPair, name, value string) bool
- func HasLabelName(labels []*dto.LabelPair, name string) bool
- func MakeMetricTypePointer(t dto.MetricType) *dto.MetricType
- func MakePromoCounter(value float64) dto.Metric
- func MakePromoGauge(value float64) dto.Metric
- func MakePromoHistogram(buckets []float64, observations []float64) dto.Metric
- func MakePromoSummary(objectives map[float64]float64, observations []float64) dto.Metric
- func MakePromoUntyped(value float64) dto.Metric
- func MakeStrPtr(s string) *string
- func MakeTestMetricFamily(metricType dto.MetricType, count int, labels []*dto.LabelPair) *dto.MetricFamily
Constants ¶
View Source
const ( GaugeMetricName = "testGauge" CounterMetricName = "testCounter" HistogramMetricName = "testHistogram" SummaryMetricName = "testSummary" UntypedMetricName = "testUntyped" )
Variables ¶
This section is empty.
Functions ¶
func MakeMetricTypePointer ¶
func MakeMetricTypePointer(t dto.MetricType) *dto.MetricType
func MakePromoCounter ¶
func MakePromoGauge ¶
func MakePromoHistogram ¶
func MakePromoSummary ¶
func MakePromoUntyped ¶
func MakeStrPtr ¶
func MakeTestMetricFamily ¶
func MakeTestMetricFamily(metricType dto.MetricType, count int, labels []*dto.LabelPair) *dto.MetricFamily
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.