Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GatherAndCompare ¶
func GatherAndCompare(c prometheus.Collector, expected string, metricNames []string) error
GatherAndCompare retrieves all metrics exposed by a collector and compares it to an expected output in the Prometheus text exposition format. metricNames allows only comparing the given metrics. All are compared if it's nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.