Help us shape the future of Go! Take the 2026 Go Developer Survey

utils

package
v1.154.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

Decoder is a decoder for resources part of the `monitoring.coreos.com/v1{{beta,alpha}1} APIs.

Functions

func ConfigObjectMeta

func ConfigObjectMeta(name, namespace, prometheusName string) metav1.ObjectMeta

ConfigObjectMeta returns the object meta for a standard Prometheus config object (e.g., ServiceMonitor).

func Labels

func Labels(prometheusName string) map[string]string

Labels returns the labels for the respective prometheus instance.

func StandardMetricRelabelConfig

func StandardMetricRelabelConfig(allowedMetrics ...string) []monitoringv1.RelabelConfig

StandardMetricRelabelConfig returns the standard relabel config for metrics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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