rules

package
v0.22.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RuleName             = "prometheus-k8s-rules-cnv"
	PrometheusKey        = "prometheus"
	PrometheusValue      = "k8s"
	RoleLabelKey         = "role"
	RoleLabelValue       = "alert-rules"
	KubevirtLabelKey     = "kubevirt.io"
	KubevirtLabelValue   = "prometheus-rules"
	PrometheusLabelKey   = "prometheus.ssp.kubevirt.io"
	PrometheusLabelValue = "true"
)

Variables

This section is empty.

Functions

func BuildPrometheusRule

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

func ListAlerts

func ListAlerts() []promv1.Rule

func ListRecordingRules

func ListRecordingRules() []operatorrules.RecordingRule

func SetupRules

func SetupRules() error

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