Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGatherer ¶
func NewGatherer(cfg ConfigGatherer) metric.Gatherer
NewGatherer returns a new metric gatherer for prometheus backends.
Types ¶
type ConfigGatherer ¶
type ConfigGatherer struct { // Client is the prometheus API client. Client promv1.API // FilterSpecialLabels will return the metrics with the special labels filtered. // The special labels start with `__`, examples: `__name__`, `__scheme__`. FilterSpecialLabels bool }
ConfigGatherer is the configuration of the Prometheus gatherer.
Click to show internal directories.
Click to hide internal directories.