From 445e62958ea90908a59b5382f7184338df44fc8f Mon Sep 17 00:00:00 2001 From: Grzegorz Koper Date: Fri, 24 Jan 2025 14:32:22 +0100 Subject: [PATCH] Fix Grafana datasource update Removing hardcoded version number from template Closes-Bug: #2096664 Change-Id: I8e246419bbb783fa7c55f407986f45476a251252 --- ansible/roles/grafana/templates/prometheus.yaml.j2 | 1 - .../notes/grafana_update_datasources-706e3cdc964c5272.yaml | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 releasenotes/notes/grafana_update_datasources-706e3cdc964c5272.yaml diff --git a/ansible/roles/grafana/templates/prometheus.yaml.j2 b/ansible/roles/grafana/templates/prometheus.yaml.j2 index 5615638fb5..1716d88a6b 100644 --- a/ansible/roles/grafana/templates/prometheus.yaml.j2 +++ b/ansible/roles/grafana/templates/prometheus.yaml.j2 @@ -10,6 +10,5 @@ datasources: basicAuthPassword: "{{ prometheus_grafana_password }}" orgId: 1 url: {{ grafana_prometheus_url }} - version: 1 jsonData: timeInterval: {{ prometheus_scrape_interval }} diff --git a/releasenotes/notes/grafana_update_datasources-706e3cdc964c5272.yaml b/releasenotes/notes/grafana_update_datasources-706e3cdc964c5272.yaml new file mode 100644 index 0000000000..e797e3c688 --- /dev/null +++ b/releasenotes/notes/grafana_update_datasources-706e3cdc964c5272.yaml @@ -0,0 +1,6 @@ +--- +fixes: + - | + Fixes an issue with Grafana datasource updates by removing hardcoded + version number. This ensures proper datasource configuration updates. + `LP#[2096664] `__