Skip to content

Commit a165b9a

Browse files
committed
add destination to incoming federation responses metrics
1 parent c2ac46f commit a165b9a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

synapse/http/matrixfederationclient.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
incoming_responses_counter = Counter(
105105
"synapse_http_matrixfederationclient_responses",
106106
"",
107-
labelnames=["method", "code", SERVER_NAME_LABEL],
107+
labelnames=["method", "destination", "code", SERVER_NAME_LABEL],
108108
)
109109

110110

@@ -754,6 +754,7 @@ async def _send_request(
754754

755755
incoming_responses_counter.labels(
756756
method=request.method,
757+
destination=request.destination,
757758
code=response.code,
758759
**{SERVER_NAME_LABEL: self.server_name},
759760
).inc()

0 commit comments

Comments
 (0)