Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Name string Labels []MetricLabelPair Value float64 TimestampMs int64 }
type MetricLabelPair ¶
type ParseError ¶
ParseError signals errors while parsing the simple and flat text-based exchange format.
type TextParser ¶
type TextParser struct {
// contains filtered or unexported fields
}
TextParser is used to parse the simple and flat text-based exchange format. Its zero value is ready to use.
func (*TextParser) LineToMetric ¶
func (p *TextParser) LineToMetric(line []byte) (*Metric, error)
TextToMetricFamilies reads 'in' as the simple and flat text-based exchange format and creates MetricFamily proto messages. It returns the MetricFamily proto messages in a map where the metric names are the keys, along with any error encountered.
Click to show internal directories.
Click to hide internal directories.