Skip to content
Snippets Groups Projects
Commit 14d4268a authored by ale's avatar ale
Browse files

Register the Prometheus metrics

parent fe2b6028
No related branches found
No related tags found
No related merge requests found
......@@ -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)))
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment