mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Rename the timer metrics exported by synapse.storage to append _time, so the meaning of ':total' is clearer
This commit is contained in:
parent
493e3fa0ca
commit
63cb7ece62
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user