utils

package
v1.91.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 9 Imported by: 0

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