scheduler: rename metric name of pending pods

parent 3ef622d5
...@@ -195,7 +195,7 @@ var ( ...@@ -195,7 +195,7 @@ var (
pendingPods = prometheus.NewGaugeVec( pendingPods = prometheus.NewGaugeVec(
prometheus.GaugeOpts{ prometheus.GaugeOpts{
Subsystem: SchedulerSubsystem, Subsystem: SchedulerSubsystem,
Name: "pending_pods_total", Name: "pending_pods",
Help: "Number of pending pods, by the queue type. 'active' means number of pods in activeQ; 'backoff' means number of pods in backoffQ; 'unschedulable' means number of pods in unschedulableQ.", Help: "Number of pending pods, by the queue type. 'active' means number of pods in activeQ; 'backoff' means number of pods in backoffQ; 'unschedulable' means number of pods in unschedulableQ.",
}, []string{"queue"}) }, []string{"queue"})
ActivePods = pendingPods.With(prometheus.Labels{"queue": "active"}) ActivePods = pendingPods.With(prometheus.Labels{"queue": "active"})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment