mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Fix weird things after merge.
And I swear I'll never use 'rebase' to 'clean something up' ever agin, even if Julius tells me to do so... Change-Id: Ifeabab20445279bf693c95f062da769b60fe195f
This commit is contained in:
parent
3a17aeabfd
commit
ea86f7e8f8
1
main.go
1
main.go
|
@ -23,7 +23,6 @@ import (
|
||||||
|
|
||||||
"github.com/golang/glog"
|
"github.com/golang/glog"
|
||||||
"github.com/prometheus/client_golang/extraction"
|
"github.com/prometheus/client_golang/extraction"
|
||||||
registry "github.com/prometheus/client_golang/prometheus"
|
|
||||||
|
|
||||||
clientmodel "github.com/prometheus/client_golang/model"
|
clientmodel "github.com/prometheus/client_golang/model"
|
||||||
registry "github.com/prometheus/client_golang/prometheus"
|
registry "github.com/prometheus/client_golang/prometheus"
|
||||||
|
|
|
@ -219,18 +219,3 @@ func (n *NotificationHandler) Collect(ch chan<- prometheus.Metric) {
|
||||||
ch <- n.notificationsQueueLength
|
ch <- n.notificationsQueueLength
|
||||||
ch <- n.notificationsQueueCapacity
|
ch <- n.notificationsQueueCapacity
|
||||||
}
|
}
|
||||||
|
|
||||||
// Describe implements prometheus.Collector.
|
|
||||||
func (n *NotificationHandler) Describe(ch chan<- *prometheus.Desc) {
|
|
||||||
n.notificationLatency.Describe(ch)
|
|
||||||
ch <- n.notificationsQueueLength.Desc()
|
|
||||||
ch <- n.notificationsQueueCapacity.Desc()
|
|
||||||
}
|
|
||||||
|
|
||||||
// Collect implements prometheus.Collector.
|
|
||||||
func (n *NotificationHandler) Collect(ch chan<- prometheus.Metric) {
|
|
||||||
n.notificationLatency.Collect(ch)
|
|
||||||
n.notificationsQueueLength.Set(float64(len(n.pendingNotifications)))
|
|
||||||
ch <- n.notificationsQueueLength
|
|
||||||
ch <- n.notificationsQueueCapacity
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue