Documentation
¶
Overview ¶
Package prometheus provides utility functions to deal with prometheus endpoints
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricFamily ¶
MetricFamily represents a metric family that is returned by a prometheus endpoint.
func ParseMetrics ¶
func ParseMetrics(data []byte) ([]MetricFamily, error)
ParseMetrics parses prometheus-formatted metrics from the input data.
func ParseMetricsWithFilter ¶
func ParseMetricsWithFilter(data []byte, filter []string) ([]MetricFamily, error)
ParseMetricsWithFilter parses prometheus-formatted metrics from the input data, ignoring lines which contain text that matches the passed in filter.
Click to show internal directories.
Click to hide internal directories.