diff --git a/flake.lock b/flake.lock index dc4d564..f757022 100644 --- a/flake.lock +++ b/flake.lock @@ -1127,11 +1127,11 @@ "tailwindcss-animated-src": "tailwindcss-animated-src_2" }, "locked": { - "lastModified": 1790081384, - "narHash": "sha256-iT3jHIxVZVTA/BpbxPjqoqZlTutv87c1Bj+31QS3b7Y=", + "lastModified": 1790106306, + "narHash": "sha256-wAI55olUUeO1d5KIoMsxSJZdn8iFeDQIiTGkWFYTMyQ=", "ref": "sv-fe", - "rev": "5567c7afd7b955be90e0a329aaa1d236b604d3e6", - "revCount": 4197, + "rev": "e80c1a8386e7162e504e17e37c605b2356e379ac", + "revCount": 4265, "type": "git", "url": "https://tangled.org/tangled.org/core" }, diff --git a/hosts/prometheus-hel/dashboards/gitmirror.json b/hosts/prometheus-hel/dashboards/gitmirror.json index 9af3208..e58dc75 100644 --- a/hosts/prometheus-hel/dashboards/gitmirror.json +++ b/hosts/prometheus-hel/dashboards/gitmirror.json @@ -540,7 +540,7 @@ "targets": [ { "refId": "A", - "expr": "gitmirror_xrpc_duration_seconds{job=\"gitmirror\",quantile=\"0.5\"}", + "expr": "histogram_quantile(0.5, sum by (le, path) (rate(gitmirror_xrpc_duration_seconds_bucket{job=\"gitmirror\"}[5m])))", "legendFormat": "{{path}}" } ], @@ -586,7 +586,7 @@ "targets": [ { "refId": "A", - "expr": "gitmirror_xrpc_duration_seconds{job=\"gitmirror\",quantile=\"0.99\"}", + "expr": "histogram_quantile(0.99, sum by (le, path) (rate(gitmirror_xrpc_duration_seconds_bucket{job=\"gitmirror\"}[5m])))", "legendFormat": "{{path}}" } ], @@ -632,7 +632,7 @@ "targets": [ { "refId": "A", - "expr": "topk(5, 1000 * max_over_time(gitmirror_xrpc_duration_seconds{job=\"gitmirror\",quantile=\"0.99\"}[$__range]))", + "expr": "topk(5, 1000 * (sum by (path) (increase(gitmirror_xrpc_duration_seconds_sum{job=\"gitmirror\"}[$__range])) / clamp_min(sum by (path) (increase(gitmirror_xrpc_duration_seconds_count{job=\"gitmirror\"}[$__range])), 1))) > 0", "legendFormat": "{{path}}", "instant": true, "range": false, @@ -664,7 +664,7 @@ { "matcher": { "id": "byName", - "options": "worst p99" + "options": "average response" }, "properties": [ { @@ -681,7 +681,7 @@ "showTypeIcons": false, "sortBy": [ { - "displayName": "worst p99", + "displayName": "average response", "desc": true } ], @@ -694,7 +694,7 @@ "w": 8, "h": 7 }, - "description": "The five methods whose slow tail was worst at any point in the selected period. Use this to find which method to look at; use the per-repo log panels below to find which repository caused it.", + "description": "The five methods with the highest average response time during the selected period. Use this to find which method to look at; use the per-repo log panels below to find which repository caused it.", "transformations": [ { "id": "organize", @@ -712,7 +712,7 @@ "Value": 1 }, "renameByName": { - "Value": "worst p99" + "Value": "average response" } } } @@ -838,12 +838,12 @@ "targets": [ { "refId": "A", - "expr": "gitmirror_blocking_queue_wait_seconds{job=\"gitmirror\",quantile=\"0.5\"}", + "expr": "histogram_quantile(0.5, sum by (le, kind) (rate(gitmirror_blocking_queue_wait_seconds_bucket{job=\"gitmirror\"}[5m])))", "legendFormat": "{{kind}} median" }, { "refId": "B", - "expr": "gitmirror_blocking_queue_wait_seconds{job=\"gitmirror\",quantile=\"0.99\"}", + "expr": "histogram_quantile(0.99, sum by (le, kind) (rate(gitmirror_blocking_queue_wait_seconds_bucket{job=\"gitmirror\"}[5m])))", "legendFormat": "{{kind}} p99" } ],