From cd099380d1e7720c690cc9c626c32560ccd1a26e Mon Sep 17 00:00:00 2001 From: rays Date: Mon, 12 Oct 2026 15:36:34 +0000 Subject: [PATCH] Dashboard: leave Caddy's healthcheck and start-up notices out (#210) Co-Authored-By: Claude Opus 5.5 --- grafana/dashboard.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/grafana/dashboard.py b/grafana/dashboard.py index 8b0a776..97eedc7 100644 --- a/grafana/dashboard.py +++ b/grafana/dashboard.py @@ -32,8 +32,11 @@ DIR_HTTP = '{container="ipx-directory"} |= "ipx_directory::http" | json | __erro # ipx-web's Caddy access log (#203, #210): request.uri, status, duration in seconds. The page and # its files only: /api and /media are ipx's, and in its own log already. WEB = ('{container="ipx-web"} |= "http.log.access" | json | __error__=""' - ' | request_uri !~ "/(api|media)/.*"') -OTHERS_BAD = '{container=~"ipx-web|ipx-directory"} | json | __error__="" | level =~ "(?i)warn|error"' + ' | request_uri !~ "/(api|media)/.*" | request_remote_ip != "127.0.0.1"') # not its healthcheck +# Less what Caddy says at every start, by design: no admin endpoint, and no HTTPS or HTTP/3 +# behind the tunnel; and its goodbye on a restart. +OTHERS_BAD = ('{container=~"ipx-web|ipx-directory"} | json | __error__="" | level =~ "(?i)warn|error"' + ' | msg !~ "admin endpoint disabled|automatic HTTPS is completely disabled|HTTP/[23] skipped.*|exiting; byeee.*"') def status(field):