Documentation ¶
Overview ¶
Package prometheus contains api to prometheus util called promtool @see https://prometheus.io/docs/prometheus/latest/configuration/unit_testing_rules/
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // AlertsDir directory where to find alert files to be checked by promtool AlertsDir = "./infra/observe/alerting" // TestsDir directory where alerts tests are located if any, leave empty if no tests. TestsDir = "" )
Functions ¶
This section is empty.
Types ¶
type Prometheus ¶
Prometheus groups together lint related tasks.
func (Prometheus) Lint ¶
func (p Prometheus) Lint() error
Lint checks if the prometheus alert rules are valid or not.
Click to show internal directories.
Click to hide internal directories.