Skip to content
Snippets Groups Projects
Commit 0c0c8424 authored by ale's avatar ale
Browse files

Register the Prometheus metrics

parent 1d049ac2
Branches
No related tags found
No related merge requests found
......@@ -496,3 +496,9 @@ var (
Help: "Counter of keystore unlocks.",
}, []string{"status", "shard"})
)
func init() {
prometheus.MustRegister(grantsCounter)
prometheus.MustRegister(errorsCounter)
prometheus.MustRegister(keystoreCounter)
}
......@@ -452,3 +452,8 @@ var (
Help: "Counter for auth_client errors.",
})
)
func init() {
prometheus.MustRegister(loginCounter)
prometheus.MustRegister(authclientErrors)
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment