mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 09:46:07 -04:00
Use _ instead of . as a metric namespacing separator, for Prometheus
This commit is contained in:
parent
0b96bb793e
commit
b0cf867319
8 changed files with 34 additions and 18 deletions
|
@ -69,11 +69,11 @@ class TransactionQueue(object):
|
|||
# HACK to get unique tx id
|
||||
self._next_txn_id = int(self._clock.time_msec())
|
||||
|
||||
metrics.register_callback("pending_pdus",
|
||||
metrics.register_callback("pendingPdus",
|
||||
lambda: {(dest,): len(pdus[dest]) for dest in pdus.keys()},
|
||||
labels=["dest"],
|
||||
)
|
||||
metrics.register_callback("pending_edus",
|
||||
metrics.register_callback("pendingEdus",
|
||||
lambda: {(dest,): len(edus[dest]) for dest in edus.keys()},
|
||||
labels=["dest"],
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue