Documentation
¶
Index ¶
Constants ¶
View Source
const ( // COUNTER is a Prometheus COUNTER metric COUNTER string = "counter" // GAUGE is a Prometheus GAUGE metric GAUGE string = "gauge" // HISTOGRAM is a Prometheus HISTOGRAM metric HISTOGRAM string = "histogram" // SUMMARY is a Prometheus SUMMARY metric SUMMARY string = "summary" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct {
Type string `json:"type"`
Name string `json:"name"`
Help string `json:"help"`
Method string `json:"method"`
Value string `json:"value"`
Labels prometheus.Labels `json:"labels"`
Buckets []float64 `json:"buckets"`
}
Metric struct
func (*Metric) ConvertToJSON ¶
ConvertToJSON convert object to json
func (*Metric) GetValueAsFloat ¶
GetValueAsFloat gets a list of label values
func (*Metric) LabelValues ¶
LabelValues gets a list of label values
Click to show internal directories.
Click to hide internal directories.