rules

package
v1.61.0 Latest Latest
Warning

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

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

Documentation

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 in a namespace.

func ListAlerts

func ListAlerts() []promv1.Rule

ListAlerts returns all configured alert rules.

func ListRecordingRules

func ListRecordingRules() []operatorrules.RecordingRule

ListRecordingRules returns all configured recording rules.

func SetupRules

func SetupRules(namespace string) error

SetupRules initializes recording and alert rules in a namespace.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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