summary refs log tree commit diff
path: root/synapse/federation
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2018-01-15 18:20:30 +0000
committerRichard van der Hoff <richard@matrix.org>2018-01-15 18:23:24 +0000
commita027c2af8d348554cad4855094a6f46ef21bfad7 (patch)
tree0f639dbf08d2683c06461e31ca0c29d24229b1d4 /synapse/federation
parentMerge pull request #2778 from matrix-org/rav/counters_should_be_floats (diff)
downloadsynapse-a027c2af8d348554cad4855094a6f46ef21bfad7.tar.xz
Metrics for events processed in appservice and fed sender
More metrics I wished I'd had
Diffstat (limited to 'synapse/federation')
-rw-r--r--synapse/federation/transaction_queue.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/federation/transaction_queue.py b/synapse/federation/transaction_queue.py
index 3e7809b04f..9d39f46583 100644
--- a/synapse/federation/transaction_queue.py
+++ b/synapse/federation/transaction_queue.py
@@ -42,6 +42,8 @@ sent_edus_counter = client_metrics.register_counter("sent_edus")
 
 sent_transactions_counter = client_metrics.register_counter("sent_transactions")
 
+events_processed_counter = client_metrics.register_counter("events_processed")
+
 
 class TransactionQueue(object):
     """This class makes sure we only have one transaction in flight at
@@ -205,6 +207,8 @@ class TransactionQueue(object):
 
                     self._send_pdu(event, destinations)
 
+                events_processed_counter.inc_by(len(events))
+
                 yield self.store.update_federation_out_pos(
                     "events", next_token
                 )