Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
21419544
Unverified
Commit
21419544
authored
Jul 19, 2019
by
Alexander Zobnin
Committed by
GitHub
Jul 19, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SAML: add metrics (#18194)
parent
3e0625ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
pkg/infra/metrics/metrics.go
+10
-0
No files found.
pkg/infra/metrics/metrics.go
View file @
21419544
...
...
@@ -56,6 +56,9 @@ var (
// MApiLoginOAuth is a metric api login oauth counter
MApiLoginOAuth
prometheus
.
Counter
// MApiLoginSAML is a metric api login SAML counter
MApiLoginSAML
prometheus
.
Counter
// MApiOrgCreate is a metric api org created counter
MApiOrgCreate
prometheus
.
Counter
...
...
@@ -243,6 +246,12 @@ func init() {
Namespace
:
exporterName
,
})
MApiLoginSAML
=
newCounterStartingAtZero
(
prometheus
.
CounterOpts
{
Name
:
"api_login_saml_total"
,
Help
:
"api login saml counter"
,
Namespace
:
exporterName
,
})
MApiOrgCreate
=
newCounterStartingAtZero
(
prometheus
.
CounterOpts
{
Name
:
"api_org_create_total"
,
Help
:
"api org created counter"
,
...
...
@@ -435,6 +444,7 @@ func initMetricVars() {
MApiAdminUserCreate
,
MApiLoginPost
,
MApiLoginOAuth
,
MApiLoginSAML
,
MApiOrgCreate
,
MApiDashboardSnapshotCreate
,
MApiDashboardSnapshotExternal
,
...
...
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