monitoring

package module
v0.86.2-rhobs1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PrometheusesKind = "Prometheus"
	PrometheusName   = "prometheuses"

	PrometheusAgentsKind = "PrometheusAgent"
	PrometheusAgentName  = "prometheusagents"

	AlertmanagersKind = "Alertmanager"
	AlertmanagerName  = "alertmanagers"

	AlertmanagerConfigsKind = "AlertmanagerConfig"
	AlertmanagerConfigName  = "alertmanagerconfigs"

	ServiceMonitorsKind = "ServiceMonitor"
	ServiceMonitorName  = "servicemonitors"

	PodMonitorsKind = "PodMonitor"
	PodMonitorName  = "podmonitors"

	PrometheusRuleKind = "PrometheusRule"
	PrometheusRuleName = "prometheusrules"

	ProbesKind = "Probe"
	ProbeName  = "probes"

	ScrapeConfigsKind = "ScrapeConfig"
	ScrapeConfigName  = "scrapeconfigs"

	ThanosRulersKind = "ThanosRuler"
	ThanosRulerName  = "thanosrulers"
)

Variables

View Source
var (
	GroupName = "monitoring.rhobs"
)

GroupName is set to var instead of const, since this provides the ability for clients importing the module - github.com/rhobs/obo-prometheus-operator/pkg/apis to manage the operator's objects in a different API group

Use `ldflags` in the client side, e.g.: go run -ldflags="-s -X github.com/rhobs/obo-prometheus-operator/pkg/apis/monitoring.GroupName=monitoring.example.com" ./example/client/.

Functions

func KindToResource

func KindToResource(k string) string

KindToResource returns the resource name corresponding to the given kind.

func ResourceToKind

func ResourceToKind(r string) string

ResourceToKind returns the kind corresponding to the given resource name.

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