mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
SAML: add metrics (#18194)
This commit is contained in:
parent
3e0625ff3d
commit
214195441f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user