promtest

package
v0.1.73 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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

func LintMetrics(t *testing.T) (passed bool)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL