diff options
author | Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | 2018-08-08 23:16:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-08 23:16:58 +0100 |
commit | bb89c84614303dde2298bcff7838c13a5698eb6c (patch) | |
tree | e687256fc74822d07cf6b75daeb98fff412e4fa8 /synapse/metrics/__init__.py | |
parent | Merge pull request #3654 from matrix-org/rav/room_versions (diff) | |
parent | changelog (diff) | |
download | synapse-bb89c84614303dde2298bcff7838c13a5698eb6c.tar.xz |
Merge pull request #3664 from matrix-org/rav/federation_metrics
more metrics for the federation and appservice senders
Diffstat (limited to 'synapse/metrics/__init__.py')
-rw-r--r-- | synapse/metrics/__init__.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/synapse/metrics/__init__.py b/synapse/metrics/__init__.py index a9158fc066..550f8443f7 100644 --- a/synapse/metrics/__init__.py +++ b/synapse/metrics/__init__.py @@ -174,6 +174,19 @@ sent_transactions_counter = Counter("synapse_federation_client_sent_transactions events_processed_counter = Counter("synapse_federation_client_events_processed", "") +event_processing_loop_counter = Counter( + "synapse_event_processing_loop_count", + "Event processing loop iterations", + ["name"], +) + +event_processing_loop_room_count = Counter( + "synapse_event_processing_loop_room_count", + "Rooms seen per event processing loop iteration", + ["name"], +) + + # Used to track where various components have processed in the event stream, # e.g. federation sending, appservice sending, etc. event_processing_positions = Gauge("synapse_event_processing_positions", "", ["name"]) |