From be4a4410e1bbc261cd85245ff660d10107f63d98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=81ris=20Pop=C4=93ns?= Date: Sat, 14 Nov 2026 23:48:35 +0200 Subject: [PATCH] fix(dashboard): stack three compact tiles beside the traffic charts --- dashboards/github-repo-traffic-downloads.json | 96 ++++++++++++++++++- 1 file changed, 95 insertions(+), 1 deletion(-) diff --git a/dashboards/github-repo-traffic-downloads.json b/dashboards/github-repo-traffic-downloads.json index 1052e82..bf4d51f 100644 --- a/dashboards/github-repo-traffic-downloads.json +++ b/dashboards/github-repo-traffic-downloads.json @@ -747,7 +747,7 @@ "x": 0, "y": 33, "w": 4, - "h": 4 + "h": 3 }, "targets": [ { @@ -1142,6 +1142,100 @@ "defaults": {}, "overrides": [] } + }, + { + "id": 21, + "type": "stat", + "title": "Views (selected range)", + "description": "Sum of daily views over the selected range.", + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "gridPos": { + "x": 0, + "y": 36, + "w": 4, + "h": 3 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "expr": "sum(max by (repo, date) (max_over_time(github_repo_traffic_views_daily{repo=~\"$repo\"}[$__range])))", + "instant": true, + "range": false + } + ], + "options": { + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "colorMode": "none", + "graphMode": "none", + "textMode": "value" + }, + "fieldConfig": { + "defaults": { + "unit": "short", + "noValue": "-" + }, + "overrides": [] + } + }, + { + "id": 22, + "type": "stat", + "title": "Clones (selected range)", + "description": "Sum of daily clones over the selected range.", + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "gridPos": { + "x": 0, + "y": 39, + "w": 4, + "h": 3 + }, + "targets": [ + { + "refId": "A", + "datasource": { + "type": "prometheus", + "uid": "${datasource}" + }, + "expr": "sum(max by (repo, date) (max_over_time(github_repo_traffic_clones_daily{repo=~\"$repo\"}[$__range])))", + "instant": true, + "range": false + } + ], + "options": { + "reduceOptions": { + "calcs": [ + "lastNotNull" + ], + "fields": "", + "values": false + }, + "colorMode": "none", + "graphMode": "none", + "textMode": "value" + }, + "fieldConfig": { + "defaults": { + "unit": "short", + "noValue": "-" + }, + "overrides": [] + } } ], "version": 1