forked from TrueCloudLab/distribution
rename the metrics label
Signed-off-by: Honglin Feng <tifayuki@gmail.com>
This commit is contained in:
parent
d5a615b8c9
commit
92a6436714
1 changed files with 3 additions and 3 deletions
|
@ -12,11 +12,11 @@ import (
|
||||||
|
|
||||||
var (
|
var (
|
||||||
// eventsCounter counts total events of incoming, success, failure, and errors
|
// eventsCounter counts total events of incoming, success, failure, and errors
|
||||||
eventsCounter = prometheus.NotificationsNamespace.NewLabeledCounter("events", "The number of total events", "type", "to")
|
eventsCounter = prometheus.NotificationsNamespace.NewLabeledCounter("events", "The number of total events", "type", "endpoint")
|
||||||
// pendingGauge measures the pending queue size
|
// pendingGauge measures the pending queue size
|
||||||
pendingGauge = prometheus.NotificationsNamespace.NewLabeledGauge("pending", "The gauge of pending events in queue", metrics.Total, "to")
|
pendingGauge = prometheus.NotificationsNamespace.NewLabeledGauge("pending", "The gauge of pending events in queue", metrics.Total, "endpoint")
|
||||||
// statusCounter counts the total notification call per each status code
|
// statusCounter counts the total notification call per each status code
|
||||||
statusCounter = prometheus.NotificationsNamespace.NewLabeledCounter("status", "The number of status code", "code", "to")
|
statusCounter = prometheus.NotificationsNamespace.NewLabeledCounter("status", "The number of status code", "code", "endpoint")
|
||||||
)
|
)
|
||||||
|
|
||||||
// EndpointMetrics track various actions taken by the endpoint, typically by
|
// EndpointMetrics track various actions taken by the endpoint, typically by
|
||||||
|
|
Loading…
Reference in a new issue