summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2022-08-08 22:06:13 -0500
committerEric Eastwood <erice@element.io>2022-08-08 22:06:13 -0500
commitecd5a0d75fc8072bfb90e885cdb0d503783c2477 (patch)
treed6e83b2d5c3a9a630020ca50763f915e3b34cf4c
parentFix `@tag_args` being off-by-one (ahead) (#13452) (diff)
downloadsynapse-ecd5a0d75fc8072bfb90e885cdb0d503783c2477.tar.xz
Allow grafana histogram quantiles to show values bigger than 10s
-rw-r--r--synapse/http/request_metrics.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/synapse/http/request_metrics.py b/synapse/http/request_metrics.py
index 2b6d113544..9ff39b0833 100644
--- a/synapse/http/request_metrics.py
+++ b/synapse/http/request_metrics.py
@@ -43,6 +43,28 @@ response_timer = Histogram(
     "synapse_http_server_response_time_seconds",
     "sec",
     ["method", "servlet", "tag", "code"],
+    buckets=(
+        0.005,
+        0.01,
+        0.025,
+        0.05,
+        0.075,
+        0.1,
+        0.25,
+        0.5,
+        0.75,
+        1.0,
+        2.5,
+        5.0,
+        7.5,
+        10.0,
+        30.0,
+        60.0,
+        120.0,
+        180.0,
+        200.0,
+        "+Inf",
+    ),
 )
 
 response_ru_utime = Counter(