aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin <valentin@fricklerhandwerk.de>2025-11-22 22:21:49 +0100
committerValentin <valentin@fricklerhandwerk.de>2025-11-22 22:31:23 +0100
commit934116ba6417da1b78d4a82a40648ce0d2e8b567 (patch)
treee3a51f2016b56dd8cd740a23da76a2d28ba32dc5
parentcd5f5ae7ba52b318c42727b5e8926baf04a1de0c (diff)
Anfrage-Statistiken nur für tatsächliche Dienste sammelnmain
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.
-rw-r--r--tharos/dashboards/caddy.json38
1 files 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"
}
]
},