Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MetricMetadataTypeValue = map[string]int32{
"UNKNOWN": 0,
"COUNTER": 1,
"GAUGE": 2,
"HISTOGRAM": 3,
"GAUGEHISTOGRAM": 4,
"SUMMARY": 5,
"INFO": 6,
"STATESET": 7,
}
Functions ¶
func MetricFamiliesToWriteRequest ¶
func MetricFamiliesToWriteRequest(mf map[string]*dto.MetricFamily, extraLabels map[string]string) (*prompb.WriteRequest, error)
MetricFamiliesToWriteRequest convert metric family to a writerequest.
func MetricTextToWriteRequest ¶
func MetricTextToWriteRequest(input io.Reader, labels map[string]string) (*prompb.WriteRequest, error)
MetricTextToWriteRequest consumes an io.Reader and return the data in write request format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.