diff options
author | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-06 16:18:21 +0000 |
---|---|---|
committer | Paul "LeoNerd" Evans <paul@matrix.org> | 2015-03-12 16:24:51 +0000 |
commit | b0cf86731957876ca877c35bf30c6f695f1a544c (patch) | |
tree | 1ca688153c5214ad3e2bc7b6192699abf37abeca /synapse/handlers | |
parent | Have all @metrics.counted use a single metric name vectored on the method nam... (diff) | |
download | synapse-b0cf86731957876ca877c35bf30c6f695f1a544c.tar.xz |
Use _ instead of . as a metric namespacing separator, for Prometheus
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/presence.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/presence.py b/synapse/handlers/presence.py index 698946a48b..c6d6aef53b 100644 --- a/synapse/handlers/presence.py +++ b/synapse/handlers/presence.py @@ -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) ) |