Documentation ¶
Overview ¶
Package promtest provides helpers for testing applications which export Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collect ¶
func Collect(t *testing.T, c prometheus.Collector) []byte
Collect sets up a temporary HTTP server and performs a single scrape of the metrics provided by c. The metrics data is returned as a byte slice for further inspection by other functions in this package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.