Commit 14d4268a authored by ale's avatar ale

Register the Prometheus metrics

parent fe2b6028
Pipeline #5435 passed with stages
in 5 minutes and 55 seconds
......@@ -21,6 +21,13 @@ var (
})
)
func init() {
prometheus.MustRegister(totalKeysInMemory)
prometheus.MustRegister(requestsCounter)
prometheus.MustRegister(decryptedKeysCounter)
prometheus.MustRegister(unlockedKeysServedCounter)
}
func (s *KeyStore) updateKeyspaceSize() {
totalKeysInMemory.Set(float64(len(s.userKeys)))
}
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