summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2020-05-14 17:01:34 +0100
committerGitHub <noreply@github.com>2020-05-14 17:01:34 +0100
commiteafd103fc70bc7d479bf80271b4f03144424d5fa (patch)
treeab8222189c452cd52868ec7f8ef95609a37787e0 /synapse
parentAllow expired accounts to logout (#7443) (diff)
downloadsynapse-eafd103fc70bc7d479bf80271b4f03144424d5fa.tar.xz
Fix b'GET' in prometheus metrics (#7503)
Diffstat (limited to 'synapse')
-rw-r--r--synapse/http/matrixfederationclient.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/http/matrixfederationclient.py b/synapse/http/matrixfederationclient.py
index 6b0a532c05..225a47e3c3 100644
--- a/synapse/http/matrixfederationclient.py
+++ b/synapse/http/matrixfederationclient.py
@@ -408,7 +408,7 @@ class MatrixFederationHttpClient(object):
                         _sec_timeout,
                     )
 
-                    outgoing_requests_counter.labels(method_bytes).inc()
+                    outgoing_requests_counter.labels(request.method).inc()
 
                     try:
                         with Measure(self.clock, "outbound_request"):
@@ -434,7 +434,9 @@ class MatrixFederationHttpClient(object):
                         logger.info("Failed to send request: %s", e)
                         raise_from(RequestSendFailed(e, can_retry=True), e)
 
-                    incoming_responses_counter.labels(method_bytes, response.code).inc()
+                    incoming_responses_counter.labels(
+                        request.method, response.code
+                    ).inc()
 
                     set_tag(tags.HTTP_STATUS_CODE, response.code)