From 38c438fb4eb09fa49cfc59f5b38b43fc1added3d Mon Sep 17 00:00:00 2001 From: Korowa <113216393+korowant@users.noreply.github.com> Date: Thu, 5 Nov 2026 04:35:28 +0700 Subject: [PATCH] chore(monitoring): move Grafana off EOL 9.3.0 and fix provisioning keys The stack pins grafana/grafana:9.3.0 (December 2022). That release has been end-of-life for years: every CVE fixed since - including the auth-bypass and XSS fixes in 9.5/10.x - is missing from the monitoring stack every node operator runs. Bump the default to 12.4.14 (the current 12.x line, still receiving patches; 13.2.5 is available if you would rather jump to the newest major). Compatibility was checked against the shipped dashboard before bumping: - schemaVersion 37 is auto-migrated by Grafana on load - panel types are gauge/row/stat/timeseries - all core panels, no removed 'graph' panel - the dashboard's datasource uid 6R74VAnVz matches the provisioned datasource uid - provisioning apiVersion 1, GF_SECURITY_ADMIN_PASSWORD and the file-based dashboard provider are unchanged in 12.x While in there, fix the provisioning schema: both files use org_id, which modern Grafana ignores (it expects orgId), so the datasource and dashboard provider silently fall back to org 1. Use the documented key. Also drop the two InfluxDB entries from deleteDatasources - InfluxDB left the stack in #97, so they can never match anything. --- docker-compose.yml | 2 +- docker/grafana/provisioning/dashboards/all.yml | 2 +- docker/grafana/provisioning/datasources/all.yml | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index cc4f8d8..31071f1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -74,7 +74,7 @@ services: - ${PORT__PROMETHEUS:-9090}:9090 grafana: - image: grafana/grafana:${IMAGE_TAG__GRAFANA:-9.3.0} + image: grafana/grafana:${IMAGE_TAG__GRAFANA:-12.4.14} restart: unless-stopped env_file: - ./envs/common/grafana.env diff --git a/docker/grafana/provisioning/dashboards/all.yml b/docker/grafana/provisioning/dashboards/all.yml index 256c0af..881154f 100644 --- a/docker/grafana/provisioning/dashboards/all.yml +++ b/docker/grafana/provisioning/dashboards/all.yml @@ -1,5 +1,5 @@ - name: 'default' - org_id: 1 + orgId: 1 folder: '' type: 'file' options: diff --git a/docker/grafana/provisioning/datasources/all.yml b/docker/grafana/provisioning/datasources/all.yml index e1e741f..445e174 100644 --- a/docker/grafana/provisioning/datasources/all.yml +++ b/docker/grafana/provisioning/datasources/all.yml @@ -2,8 +2,6 @@ apiVersion: 1 deleteDatasources: - name: "Prometheus" - - name: "InfluxDB" - - name: "InfluxDB (op-geth)" datasources: - access: "proxy" @@ -11,7 +9,7 @@ datasources: is_default: true name: "Prometheus" uid: "6R74VAnVz" - org_id: 1 + orgId: 1 type: "prometheus" url: "http://prometheus:9090" version: 1