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 ListRecordingRules ¶
func ListRecordingRules() []operatorrules.RecordingRule
func SetupRules ¶
func SetupRules() error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.