localmetrics

package
v0.0.0-...-0716c02 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: 2 Imported by: 0

Documentation

Overview

Package localmetrics is the package for local-metrics

Index

Constants

This section is empty.

Variables

View Source
var (

	// NetAttachDefInstanceCounter ...  Total no of network attachment definition instance in the cluster
	NetAttachDefInstanceCounter = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "network_attachment_definition_instances",
			Help: "Metric to get number of instance using network attachment definition in the cluster.",
		}, []string{"networks"})
	// NetAttachDefEnabledInstanceUp  ... check if any instance with netattachdef config enabled
	NetAttachDefEnabledInstanceUp = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "network_attachment_definition_enabled_instance_up",
			Help: "Metric to identify clusters with network attachment definition enabled instances.",
		}, []string{"networks"})
)

Functions

func GetStoredValue

func GetStoredValue(key string) string

GetStoredValue ... Get stroed config value for pod key

func InitMetrics

func InitMetrics()

InitMetrics ... empty metrics

func SetNetAttachDefEnabledInstanceUp

func SetNetAttachDefEnabledInstanceUp(tp string, val int)

SetNetAttachDefEnabledInstanceUp ...

func SetStoredValue

func SetStoredValue(key string, val string)

SetStoredValue ... set stored key value

func UpdateNetAttachDefInstanceMetrics

func UpdateNetAttachDefInstanceMetrics(tp string, val int)

UpdateNetAttachDefInstanceMetrics ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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