From c45dc736ca9209b7055f6060bc4fa8125a5a3bfd Mon Sep 17 00:00:00 2001 From: spagno Date: Sat, 19 Oct 2024 02:48:23 +0200 Subject: [PATCH] fix(unpoller): Prometheus dashboards (#27994) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The unpoller dashboards can't be loaded in Prometheus with the error "Failed to upgrade legacy queries" The panels uses the ${DS_PROMETHEUS} variable which is not defined in the dashboards **โš™๏ธ Type of change** - [ ] โš™๏ธ Feature/App addition - [x] ๐Ÿช› Bugfix - [ ] โš ๏ธ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] ๐Ÿ”ƒ Refactor of current code **๐Ÿงช How Has This Been Tested?** I installed the chart with the new dashboards and they work --- charts/stable/unpoller/Chart.yaml | 2 +- charts/stable/unpoller/dashboards/UAP.json | 7 +++++++ charts/stable/unpoller/dashboards/USG.json | 7 +++++++ charts/stable/unpoller/dashboards/USW.json | 7 +++++++ charts/stable/unpoller/dashboards/clients.json | 7 +++++++ charts/stable/unpoller/dashboards/network.json | 7 +++++++ 6 files changed, 36 insertions(+), 1 deletion(-) diff --git a/charts/stable/unpoller/Chart.yaml b/charts/stable/unpoller/Chart.yaml index 34e6376b424..528947fc818 100644 --- a/charts/stable/unpoller/Chart.yaml +++ b/charts/stable/unpoller/Chart.yaml @@ -34,4 +34,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/unpoller - https://github.com/unifi-poller/unifi-poller type: application -version: 12.2.0 +version: 12.2.1 diff --git a/charts/stable/unpoller/dashboards/UAP.json b/charts/stable/unpoller/dashboards/UAP.json index d4324dbc80e..5881f440cac 100644 --- a/charts/stable/unpoller/dashboards/UAP.json +++ b/charts/stable/unpoller/dashboards/UAP.json @@ -3512,6 +3512,13 @@ "tags": ["unifi", "uap", "unifi-poller"], "templating": { "list": [ + { + "hide": 2, + "name": "DS_PROMETHEUS", + "query": "Prometheus", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": ".*", "current": {}, diff --git a/charts/stable/unpoller/dashboards/USG.json b/charts/stable/unpoller/dashboards/USG.json index 95d498d4d92..a35e3a00213 100644 --- a/charts/stable/unpoller/dashboards/USG.json +++ b/charts/stable/unpoller/dashboards/USG.json @@ -2362,6 +2362,13 @@ "tags": ["unifi", "unifi-poller", "usg"], "templating": { "list": [ + { + "hide": 2, + "name": "DS_PROMETHEUS", + "query": "Prometheus", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": ".*", "current": {}, diff --git a/charts/stable/unpoller/dashboards/USW.json b/charts/stable/unpoller/dashboards/USW.json index 659592fa172..ec9a77685d9 100644 --- a/charts/stable/unpoller/dashboards/USW.json +++ b/charts/stable/unpoller/dashboards/USW.json @@ -2649,6 +2649,13 @@ "tags": ["unifi", "usw", "unifi-poller"], "templating": { "list": [ + { + "hide": 2, + "name": "DS_PROMETHEUS", + "query": "Prometheus", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": ".*", "current": {}, diff --git a/charts/stable/unpoller/dashboards/clients.json b/charts/stable/unpoller/dashboards/clients.json index 8f885508263..de488dfa65d 100644 --- a/charts/stable/unpoller/dashboards/clients.json +++ b/charts/stable/unpoller/dashboards/clients.json @@ -2958,6 +2958,13 @@ "tags": ["unifi", "unifi-poller"], "templating": { "list": [ + { + "hide": 2, + "name": "DS_PROMETHEUS", + "query": "Prometheus", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": null, "current": {}, diff --git a/charts/stable/unpoller/dashboards/network.json b/charts/stable/unpoller/dashboards/network.json index 4fcc22e35d3..53eedca7b98 100644 --- a/charts/stable/unpoller/dashboards/network.json +++ b/charts/stable/unpoller/dashboards/network.json @@ -1352,6 +1352,13 @@ "tags": ["unifi", "unifi-poller"], "templating": { "list": [ + { + "hide": 2, + "name": "DS_PROMETHEUS", + "query": "Prometheus", + "skipUrlSync": false, + "type": "constant" + }, { "allValue": null, "current": {},