s/count/total/ in audit prometheus metrics

Kubernetes-commit: b34d6ab890d3d73b391a876125d1ea3141c54f1d
This commit is contained in:
Tim St. Clair 2017-06-26 14:41:20 -07:00 committed by Kubernetes Publisher
parent b7f543928d
commit dc4be7ced9
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"},