From 934116ba6417da1b78d4a82a40648ce0d2e8b567 Mon Sep 17 00:00:00 2001 From: Valentin Date: Sat, 22 Nov 2025 22:21:49 +0100 Subject: =?UTF-8?q?Anfrage-Statistiken=20nur=20f=C3=BCr=20tats=C3=A4chlich?= =?UTF-8?q?e=20Dienste=20sammeln?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Ungültige Anfragen zu zählen ist zwar interessant für die Überwachung des Servers, aber nicht zur bestimmung der Reichweite der Website und Nutzungshäufigkeit von Diensten. Diese Konfiguration kann man so in der virtuellen Maschine nicht mehr testen, weil die Domains dort anders sind. Ab hier lohnt es sich eigentlich schon, ein NixOS-Modul für Grafana-Dashboards und Panels zu pflegen. Das wäre vielleicht auch einer der nächsten Schritte, um das Monitoring weiter zu entwickeln. --- tharos/dashboards/caddy.json | 38 +++++++++++++++++++++++++++----------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/tharos/dashboards/caddy.json b/tharos/dashboards/caddy.json index 124ae07..4a04678 100644 --- a/tharos/dashboards/caddy.json +++ b/tharos/dashboards/caddy.json @@ -104,20 +104,36 @@ "templating": { "list": [ { - "datasource": { - "type": "prometheus", - "uid": "PBFA97CFB590B2093" - }, - "definition": "label_values(caddy_http_requests_total,host)", "includeAll": true, "name": "Host", - "query": { - "qryType": 1, - "query": "label_values(caddy_http_requests_total,host)", - "refId": "PrometheusVariableQueryEditor-VariableQuery" + "current": { + "text": "$__all", + "value": "$__all" }, - "refresh": 2, - "type": "query" + "options": [ + { + "selected": false, + "text": "heimfeld.hamburg", + "value": "heimfeld.hamburg" + }, + { + "selected": false, + "text": "git.heimfeld.hamburg", + "value": "git.heimfeld.hamburg" + }, + { + "selected": false, + "text": "nextcloud.heimfeld.hamburg", + "value": "nextcloud.heimfeld.hamburg" + }, + { + "selected": false, + "text": "grafana.heimfeld.hamburg", + "value": "grafana.heimfeld.hamburg" + } + ], + "query": "heimfeld.hamburg, git.heimfeld.hamburg, nextcloud.heimfeld.hamburg, grafana.heimfeld.hamburg", + "type": "custom" } ] }, -- cgit v1.2.3