Merge pull request #72679 from danielqsj/wqn

Mark deprecated in related workqueue metrics
pull/564/head
Kubernetes Prow Robot 2019-01-19 06:52:04 -08:00 committed by GitHub
commit 3ebbbda3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -131,7 +131,7 @@ func (prometheusMetricsProvider) NewDeprecatedDepthMetric(name string) workqueue
depth := prometheus.NewGauge(prometheus.GaugeOpts{
Subsystem: name,
Name: "depth",
Help: "Current depth of workqueue: " + name,
Help: "(Deprecated) Current depth of workqueue: " + name,
})
prometheus.Register(depth)
return depth
@ -141,7 +141,7 @@ func (prometheusMetricsProvider) NewDeprecatedAddsMetric(name string) workqueue.
adds := prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: name,
Name: "adds",
Help: "Total number of adds handled by workqueue: " + name,
Help: "(Deprecated) Total number of adds handled by workqueue: " + name,
})
prometheus.Register(adds)
return adds
@ -151,7 +151,7 @@ func (prometheusMetricsProvider) NewDeprecatedLatencyMetric(name string) workque
latency := prometheus.NewSummary(prometheus.SummaryOpts{
Subsystem: name,
Name: "queue_latency",
Help: "How long an item stays in workqueue" + name + " before being requested.",
Help: "(Deprecated) How long an item stays in workqueue" + name + " before being requested.",
})
prometheus.Register(latency)
return latency
@ -161,7 +161,7 @@ func (prometheusMetricsProvider) NewDeprecatedWorkDurationMetric(name string) wo
workDuration := prometheus.NewSummary(prometheus.SummaryOpts{
Subsystem: name,
Name: "work_duration",
Help: "How long processing an item from workqueue" + name + " takes.",
Help: "(Deprecated) How long processing an item from workqueue" + name + " takes.",
})
prometheus.Register(workDuration)
return workDuration
@ -171,7 +171,7 @@ func (prometheusMetricsProvider) NewDeprecatedUnfinishedWorkSecondsMetric(name s
unfinished := prometheus.NewGauge(prometheus.GaugeOpts{
Subsystem: name,
Name: "unfinished_work_seconds",
Help: "How many seconds of work " + name + " has done that " +
Help: "(Deprecated) How many seconds of work " + name + " has done that " +
"is in progress and hasn't been observed by work_duration. Large " +
"values indicate stuck threads. One can deduce the number of stuck " +
"threads by observing the rate at which this increases.",
@ -184,7 +184,7 @@ func (prometheusMetricsProvider) NewDeprecatedLongestRunningProcessorMicrosecond
unfinished := prometheus.NewGauge(prometheus.GaugeOpts{
Subsystem: name,
Name: "longest_running_processor_microseconds",
Help: "How many microseconds has the longest running " +
Help: "(Deprecated) How many microseconds has the longest running " +
"processor for " + name + " been running.",
})
prometheus.Register(unfinished)
@ -195,7 +195,7 @@ func (prometheusMetricsProvider) NewDeprecatedRetriesMetric(name string) workque
retries := prometheus.NewCounter(prometheus.CounterOpts{
Subsystem: name,
Name: "retries",
Help: "Total number of retries handled by workqueue: " + name,
Help: "(Deprecated) Total number of retries handled by workqueue: " + name,
})
prometheus.Register(retries)
return retries