Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalPodMetrics = PodMetrics{ TotalNumberPods: prometheus.NewGauge( prometheus.GaugeOpts{ Name: "total_number_pods", Namespace: namespace, Help: "Total number of pods in the cluster", }, ), IncomingPackets: prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "packets_incoming_total", Namespace: namespace, Help: "Total number of incoming packets.", }, []string{"pod_name"}, ), OutgoingPackets: prometheus.NewCounterVec( prometheus.CounterOpts{ Name: "packets_outgoing_total", Namespace: namespace, Help: "Total number of outgoing packets.", }, []string{"pod_name"}, ), }
Functions ¶
Types ¶
type PodMetrics ¶
type PodMetrics struct { TotalNumberPods prometheus.Gauge IncomingPackets *prometheus.CounterVec OutgoingPackets *prometheus.CounterVec }
Click to show internal directories.
Click to hide internal directories.