Skip to content
Snippets Groups Projects
Unverified Commit eafd103f authored by Richard van der Hoff's avatar Richard van der Hoff Committed by GitHub
Browse files

Fix b'GET' in prometheus metrics (#7503)

parent 225c1650
No related branches found
No related tags found
No related merge requests found
Fix incorrect `method` label on `synapse_http_matrixfederationclient_{requests,responses}` prometheus metrics.
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment