podmetrics

package
v0.0.0-...-5ec8c6b Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NetAttachDefPerPod represent the network attachment definitions bound to a given
	// pod
	NetAttachDefPerPod = prometheus.NewGaugeVec(
		prometheus.GaugeOpts{
			Name: "pod_network_name_info",
			Help: "Metric to identify network names of networks added to pods.",
		}, []string{"pod",
			"namespace",
			"interface",
			"network_name"})
)

Functions

func DeleteAllForPod

func DeleteAllForPod(podName, namespace string)

DeleteAllForPod stop publishing all the network metrics related to the given pod.

func Serve

func Serve(metricsAddress string, stopCh <-chan struct{})

Serve serves the network metrics to the given address.

func UpdateForPod

func UpdateForPod(podName, namespace string, networks []podnetwork.Network)

UpdateForPod adds metrics for all the provided networks to the given pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

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