prometheusrule

package
v0.0.0-...-81cd6e7 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateOrUpdate

func CreateOrUpdate(ctx context.Context, c client.Client, pr *monitoringv1.PrometheusRule) error

CreateOrUpdate attempts first to get the given prometheusrule. If the prometheusrule does not exist, the prometheusrule will be created. Otherwise, if the prometheusrule exists and the provided comparison func detects any changes an update is attempted. Updates are retried with backoff (See retry.DefaultRetry). Returns on failure an non-nil error.

func New

func New(ruleName, namespace string, labels map[string]string, groups []monitoringv1.RuleGroup) *monitoringv1.PrometheusRule

New returns a prometheus-operator prometheusrule.

Types

This section is empty.

Jump to

Keyboard shortcuts

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