From bea89a743c54ef98400a8c6ed4e16db15c12d67e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roy?= Date: Mon, 17 Apr 2023 11:37:35 -0700 Subject: [PATCH] fix(unpoller): do not use /metrics for probes (#8078) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Using /metrics for probes causes metrics to be scraped. This makes probes unnecessarily expensive and leads to more scrapes than expected against the Unifi controller (especially if the Prometheus scrape interval is significantly less than the liveness probe interval). **โš™๏ธ 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?** Run `helm template . --debug` and check the probes path is `/`. **๐Ÿ“ƒ Notes:** **โœ”๏ธ Checklist:** - [x] โš–๏ธ My code follows the style guidelines of this project - [x] ๐Ÿ‘€ I have performed a self-review of my own code - [ ] #๏ธโƒฃ I have commented my code, particularly in hard-to-understand areas - [ ] ๐Ÿ“„ I have made corresponding changes to the documentation - [x] โš ๏ธ My changes generate no new warnings - [ ] ๐Ÿงช I have added tests to this description that prove my fix is effective or that my feature works - [x] โฌ†๏ธ I increased versions for any altered app according to semantic versioning --- charts/stable/unpoller/Chart.yaml | 2 +- charts/stable/unpoller/values.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/charts/stable/unpoller/Chart.yaml b/charts/stable/unpoller/Chart.yaml index e4a3097cfb4..690e63c32dd 100644 --- a/charts/stable/unpoller/Chart.yaml +++ b/charts/stable/unpoller/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/unpoller - https://github.com/unifi-poller/unifi-poller type: application -version: 6.0.4 +version: 6.0.5 annotations: truecharts.org/catagories: | - metrics diff --git a/charts/stable/unpoller/values.yaml b/charts/stable/unpoller/values.yaml index 8fcdec43627..61837ffdbdc 100644 --- a/charts/stable/unpoller/values.yaml +++ b/charts/stable/unpoller/values.yaml @@ -28,11 +28,11 @@ workload: main: probes: liveness: - path: /metrics + path: / readiness: - path: /metrics + path: / startup: - path: /metrics + path: / env: # UP_UNIFI_DEFAULT_URL: "https://127.0.0.1:8443" # UP_UNIFI_DEFAULT_USER: "unifipoller"