diff options
author | Richard van der Hoff <richard@matrix.org> | 2018-08-07 19:09:48 +0100 |
---|---|---|
committer | Richard van der Hoff <richard@matrix.org> | 2018-08-07 19:09:48 +0100 |
commit | 53bca4690b5c94fb1506dbc628ce2ef0f770745f (patch) | |
tree | 78240d3578a9b76dfd88b64e68b0956af492a618 /synapse/metrics/__init__.py | |
parent | Return M_NOT_FOUND when a profile could not be found. (#3596) (diff) | |
download | synapse-53bca4690b5c94fb1506dbc628ce2ef0f770745f.tar.xz |
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..b7cb3a730a 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", + "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"]) |