mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-27 00:59:24 -05: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")
|
metrics = synapse.metrics.get_metrics_for("synapse.storage")
|
||||||
|
|
||||||
sql_query_timer = metrics.register_distribution("queries", labels=["verb"])
|
sql_query_timer = metrics.register_distribution("query_time", labels=["verb"])
|
||||||
sql_txn_timer = metrics.register_distribution("transactions", labels=["desc"])
|
sql_txn_timer = metrics.register_distribution("transaction_time", labels=["desc"])
|
||||||
sql_getevents_timer = metrics.register_distribution("getEvents", labels=["desc"])
|
sql_getevents_timer = metrics.register_distribution("getEvents_time", labels=["desc"])
|
||||||
|
|
||||||
caches_by_name = {}
|
caches_by_name = {}
|
||||||
cache_counter = metrics.register_cache(
|
cache_counter = metrics.register_cache(
|
||||||
|
Loading…
Reference in New Issue
Block a user