scheduler: rename metric name of pending pods

k3s-v1.15.3
Wei Huang 2019-04-11 14:16:10 -07:00
parent 3ef622d5b8
commit 6e10f0ce2f
No known key found for this signature in database
GPG Key ID: BE5E9752F8B6E005
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ var (
pendingPods = prometheus.NewGaugeVec(
prometheus.GaugeOpts{
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.",
}, []string{"queue"})
ActivePods = pendingPods.With(prometheus.Labels{"queue": "active"})