prometheus

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: MIT Imports: 6 Imported by: 0

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

type Prometheus mg.Namespace

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.

func (Prometheus) Test

func (p Prometheus) Test() error

Test run tests on prometheus alerts.

Jump to

Keyboard shortcuts

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