Use _ instead of . as a metric namespacing separator, for Prometheus

This commit is contained in:
Paul "LeoNerd" Evans 2015-03-06 16:18:21 +00:00
parent 0b96bb793e
commit b0cf867319
8 changed files with 34 additions and 18 deletions

View file

@ -136,7 +136,7 @@ class PresenceHandler(BaseHandler):
self._user_cachemap = {}
self._user_cachemap_latest_serial = 0
metrics.register_callback("user_cachemap:size",
metrics.register_callback("userCachemap:size",
lambda: len(self._user_cachemap)
)