rules

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Overview

Package rules provides functions for setting up and managing Prometheus alerts and recording rules.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildPrometheusRule

func BuildPrometheusRule(namespace string) (*promv1.PrometheusRule, error)

BuildPrometheusRule creates a PrometheusRule resource for monitoring.

func ListAlerts

func ListAlerts() []promv1.Rule

ListAlerts lists all configured alerting rules.

func ListRecordingRules

func ListRecordingRules() []operatorrules.RecordingRule

ListRecordingRules lists all configured recording rules.

func SetupRules

func SetupRules(namespace string) error

SetupRules sets up recording and alerting rules in the specified namespace.

Types

This section is empty.

Directories

Path Synopsis
Package alerts provides functions for setting up and managing Prometheus alerts rules.
Package alerts provides functions for setting up and managing Prometheus alerts rules.
Package recordingrules provides functions for setting up and managing Prometheus recording rules.
Package recordingrules provides functions for setting up and managing Prometheus recording rules.

Jump to

Keyboard shortcuts

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