Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
b34d6ab8
Unverified
Commit
b34d6ab8
authored
Jun 26, 2017
by
Tim St. Clair
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s/count/total/ in audit prometheus metrics
parent
ec1fcbed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
metrics.go
staging/src/k8s.io/apiserver/pkg/audit/metrics.go
+3
-3
No files found.
staging/src/k8s.io/apiserver/pkg/audit/metrics.go
View file @
b34d6ab8
...
...
@@ -32,13 +32,13 @@ var (
eventCounter
=
prometheus
.
NewCounter
(
prometheus
.
CounterOpts
{
Subsystem
:
subsystem
,
Name
:
"event_
count
"
,
Name
:
"event_
total
"
,
Help
:
"Counter of audit events generated and sent to the audit backend."
,
})
errorCounter
=
prometheus
.
NewCounterVec
(
prometheus
.
CounterOpts
{
Subsystem
:
subsystem
,
Name
:
"error_
count
"
,
Name
:
"error_
total
"
,
Help
:
"Counter of audit events that failed to be audited properly. "
+
"Plugin identifies the plugin affected by the error."
,
},
...
...
@@ -47,7 +47,7 @@ var (
levelCounter
=
prometheus
.
NewCounterVec
(
prometheus
.
CounterOpts
{
Subsystem
:
subsystem
,
Name
:
"level_
count
"
,
Name
:
"level_
total
"
,
Help
:
"Counter of policy levels for audit events (1 per request)."
,
},
[]
string
{
"level"
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment