metrics

package
v0.0.0-...-938f4d1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MetricsEndpoint is the port to export metrics on
	MetricsEndpoint = ":8080"
)

Variables

This section is empty.

Functions

func GenerateService

func GenerateService(port int32, portName string) (*v1.Service, error)

GenerateService returns the static service which exposes specified port.

func GenerateServiceMonitor

func GenerateServiceMonitor(s *v1.Service) *monitoringv1.ServiceMonitor

GenerateServiceMonitor generates a prometheus-operator ServiceMonitor object based on the passed Service object.

func RegisterMetrics

func RegisterMetrics() error

RegisterMetrics for the operator

func StartMetrics

func StartMetrics() error

StartMetrics register metrics and exposes them

func UpdateConfigMapMetrics

func UpdateConfigMapMetrics(list *corev1.ConfigMapList)

UpdateConfigMapMetrics updates all metrics related to the existence and contents of ConfigMaps used by configure-alertmanager-operator.

func UpdateSecretsMetrics

func UpdateSecretsMetrics(list *corev1.SecretList, amconfig *alertmanager.Config)

UpdateSecretsMetrics updates all metrics related to the existence and contents of Secrets used by configure-alertmanager-operator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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