Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var M = Metrics{ EvictedPods: prometheus.NewCounter( prometheus.CounterOpts{ ConstLabels: prometheus.Labels{}, Namespace: "rebuy", Subsystem: "node_drainer", Name: "evicted_pods", Help: "Number of evicted Pods on total.", }, ), LastEvictionDuration: prometheus.NewGauge( prometheus.GaugeOpts{ ConstLabels: prometheus.Labels{}, Namespace: "rebuy", Subsystem: "node_drainer", Name: "last_eviction_duration", Help: "Duration in seconds of the last eviction.", }, ), }
Functions ¶
func Run ¶
func Run(port string) *prometheus.Registry
Types ¶
type Metrics ¶
type Metrics struct { EvictedPods prometheus.Counter LastEvictionDuration prometheus.Gauge }
func (*Metrics) IncreaseEvictedPods ¶
func (m *Metrics) IncreaseEvictedPods()
func (*Metrics) SetLastEvictionDuration ¶
Click to show internal directories.
Click to hide internal directories.