prometheus

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RunbookDefaultURL is the default url for the documentation of the Prometheus Operator alerts.
	RunbookDefaultURL = "https://github.com/grafana/tempo-operator/blob/main/operations/runbook.md"
)

Variables

This section is empty.

Functions

func PrometheusRule

func PrometheusRule(namespace string) (*monitoringv1.PrometheusRule, error)

PrometheusRule creates a PrometheusRule containing alerts of the operator.

func ServiceMonitor

func ServiceMonitor(featureGates configv1alpha1.FeatureGates, namespace string) *monitoringv1.ServiceMonitor

ServiceMonitor creates a ServiceMonitor which scrapes the operator metrics.

Types

type Options

type Options struct {
	RunbookURL string
}

Options is used to configure Prometheus Alerts.

Jump to

Keyboard shortcuts

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