summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-08-30 06:08:29 -0500
committerGitHub <noreply@github.com>2022-08-30 12:08:29 +0100
commit1eea73b4133da3afc2361592f7b2fa4a4125249d (patch)
tree264af720ab31c4312ed178fd84575911419744a4 /synapse/server.py
parentRemove manually-added changelog (diff)
downloadsynapse-1eea73b4133da3afc2361592f7b2fa4a4125249d.tar.xz
Fix rate limit metrics registering twice and misreporting (#13649)
* Fix rate limit metrics registering twice and misreporting

Fix https://github.com/matrix-org/synapse/issues/13641

* Fix lints

* Add changelog

* Document `metrics_name=None`.
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/server.py b/synapse/server.py
index 181984a1a4..c2e55bf0b1 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -756,7 +756,9 @@ class HomeServer(metaclass=abc.ABCMeta):
     @cache_in_self
     def get_federation_ratelimiter(self) -> FederationRateLimiter:
         return FederationRateLimiter(
-            self.get_clock(), config=self.config.ratelimiting.rc_federation
+            self.get_clock(),
+            config=self.config.ratelimiting.rc_federation,
+            metrics_name="federation_servlets",
         )
 
     @cache_in_self