From a14b40549162da3da4959825c106c55f76a04b0a Mon Sep 17 00:00:00 2001 From: cato447 Date: Fri, 10 Jul 2026 01:22:21 +0200 Subject: [PATCH] added timezone To use the correct timezone add TZ= to your .env file --- README.md | 4 ++++ docker-compose.yml | 3 +++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index af5e50e..c83906e 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,10 @@ GRAFANA_ADMIN_PASSWORD=changeme # Optional: seconds between ping iterations (default 5) #PING_INTERVAL=5 + +# Optional: timezone for dashboard labels computed in SQL, e.g. the +# hourly/weekday patterns and the raw data table (default UTC) +#TZ=Europe/Berlin ``` Start the containers: diff --git a/docker-compose.yml b/docker-compose.yml index 23caea9..16a07cd 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -49,6 +49,9 @@ services: - GF_AUTH_ANONYMOUS_ORG_NAME=Main Org. - GF_AUTH_ANONYMOUS_ORG_ROLE=Viewer - GF_AUTH_ANONYMOUS_HIDE_VERSION=true + # SQL-computed labels (patterns, raw table, SLA day grouping) use SQLite's + # 'localtime', which resolves to this container's timezone. + - TZ=${TZ:-Etc/UTC} volumes: # :ro because any Grafana viewer (incl. anonymous) can send arbitrary SQL # to the datasource API; the mount and mode=ro keep that harmless.