Rename the timer metrics exported by synapse.storage to append _time, so the meaning of ':total' is clearer

pull/108/head
Paul "LeoNerd" Evans 2015-03-10 15:24:02 +00:00
parent 493e3fa0ca
commit 63cb7ece62
1 changed files with 3 additions and 3 deletions

View File

@ -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(