Commit 0c0c8424 authored by ale's avatar ale

Register the Prometheus metrics

parent 1d049ac2
Pipeline #5434 passed with stages
in 3 minutes
......@@ -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)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment