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.
Click to show internal directories.
Click to hide internal directories.