Documentation ¶
Overview ¶
Package promtest provides a utility function for linting Prometheus metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LintMetrics ¶
LintMetrics will ensure that the names of the passed-in Promethus metrics follow all best practices. If the passed-in testing.T is nil, then all lint errors are just log messages. If a real testing.T is passed in, then lint errors cause test failures.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.