package
0.0.0-20230531074106-5580259b2196
Repository: https://github.com/gbbaek/exporter_test.git
Documentation: pkg.go.dev

# Packages

Package promlint provides a linter for Prometheus metrics.

# Functions

CollectAndCompare registers the provided Collector with a newly created pedantic Registry.
CollectAndCount registers the provided Collector with a newly created pedantic Registry.
CollectAndLint registers the provided Collector with a newly created pedantic Registry.
GatherAndCompare gathers all metrics from the provided Gatherer and compares it to an expected output read from the provided Reader in the Prometheus text exposition format.
GatherAndCount gathers all metrics from the provided Gatherer and counts them.
GatherAndLint gathers all metrics from the provided Gatherer and checks them with the linter in the promlint package.
ScrapeAndCompare calls a remote exporter's endpoint which is expected to return some metrics in plain text format.
ToFloat64 collects all Metrics from the provided Collector.
TransactionalGatherAndCompare gathers all metrics from the provided Gatherer and compares it to an expected output read from the provided Reader in the Prometheus text exposition format.