summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-03-10 15:24:02 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-03-12 16:24:51 +0000
commit63cb7ece62962a0004bc45cf866b87e107bc0bc9 (patch)
tree1f5ba64d81e599447b38a955e3448fe1267e40da
parentDon't forbid '_' in metric basenames any more, to allow things like foo_time (diff)
downloadsynapse-63cb7ece62962a0004bc45cf866b87e107bc0bc9.tar.xz
Rename the timer metrics exported by synapse.storage to append _time, so the meaning of ':total' is clearer
-rw-r--r--synapse/storage/_base.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index 104e8e3cf6..f742fe15df 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -38,9 +38,9 @@ transaction_logger = logging.getLogger("synapse.storage.txn")
 
 metrics = synapse.metrics.get_metrics_for("synapse.storage")
 
-sql_query_timer = metrics.register_distribution("queries", labels=["verb"])
-sql_txn_timer = metrics.register_distribution("transactions", labels=["desc"])
-sql_getevents_timer = metrics.register_distribution("getEvents", labels=["desc"])
+sql_query_timer = metrics.register_distribution("query_time", labels=["verb"])
+sql_txn_timer = metrics.register_distribution("transaction_time", labels=["desc"])
+sql_getevents_timer = metrics.register_distribution("getEvents_time", labels=["desc"])
 
 caches_by_name = {}
 cache_counter = metrics.register_cache(