s/count/total/ in audit prometheus metrics

pull/6/head
Tim St. Clair 2017-06-26 14:41:20 -07:00
parent ec1fcbed74
commit b34d6ab890
No known key found for this signature in database
GPG Key ID: 434D16BCEF479EAB
1 changed files with 3 additions and 3 deletions

View File

@ -32,13 +32,13 @@ var (
eventCounter = prometheus.NewCounter( eventCounter = prometheus.NewCounter(
prometheus.CounterOpts{ prometheus.CounterOpts{
Subsystem: subsystem, Subsystem: subsystem,
Name: "event_count", Name: "event_total",
Help: "Counter of audit events generated and sent to the audit backend.", Help: "Counter of audit events generated and sent to the audit backend.",
}) })
errorCounter = prometheus.NewCounterVec( errorCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{ prometheus.CounterOpts{
Subsystem: subsystem, Subsystem: subsystem,
Name: "error_count", Name: "error_total",
Help: "Counter of audit events that failed to be audited properly. " + Help: "Counter of audit events that failed to be audited properly. " +
"Plugin identifies the plugin affected by the error.", "Plugin identifies the plugin affected by the error.",
}, },
@ -47,7 +47,7 @@ var (
levelCounter = prometheus.NewCounterVec( levelCounter = prometheus.NewCounterVec(
prometheus.CounterOpts{ prometheus.CounterOpts{
Subsystem: subsystem, Subsystem: subsystem,
Name: "level_count", Name: "level_total",
Help: "Counter of policy levels for audit events (1 per request).", Help: "Counter of policy levels for audit events (1 per request).",
}, },
[]string{"level"}, []string{"level"},