From 218793f454cabe940d984655c5def58f23ad6a8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Fran=C3=A7ois=20Roy?= Date: Mon, 17 Apr 2023 13:24:24 -0700 Subject: [PATCH] fix(speedtest-exporter): set scrape interval to 1h (#8079) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit **Description** Using the default value global Prometheus scrape interval of 15s causes excessive bandwidth use. Also remove old ineffective/dead probe path fragment. Using `/metrics` is a bad idea anyways since every probe would trigger a speed test. **โš™๏ธ 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?** `helm template . --debug` and check the `ServiceMonitor` resource. I also applied the change live in my cluster and observed the reduced frequency. I also checked the Prom web UI under `/service-discovery` for the new scrape interval. **๐Ÿ“ƒ 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/speedtest-exporter/Chart.yaml | 2 +- charts/stable/speedtest-exporter/values.yaml | 12 +----------- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/charts/stable/speedtest-exporter/Chart.yaml b/charts/stable/speedtest-exporter/Chart.yaml index e2650eded91..b322813019e 100644 --- a/charts/stable/speedtest-exporter/Chart.yaml +++ b/charts/stable/speedtest-exporter/Chart.yaml @@ -22,7 +22,7 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/speedtest-exporter - https://github.com/MiguelNdeCarvalho/speedtest-exporter/ type: application -version: 6.0.4 +version: 6.0.5 annotations: truecharts.org/catagories: | - metrics diff --git a/charts/stable/speedtest-exporter/values.yaml b/charts/stable/speedtest-exporter/values.yaml index 20bd6ae02eb..de8f1c1d609 100644 --- a/charts/stable/speedtest-exporter/values.yaml +++ b/charts/stable/speedtest-exporter/values.yaml @@ -17,6 +17,7 @@ metrics: endpoints: - port: main path: /metrics + interval: 1h prometheusRule: enabled: false @@ -26,14 +27,3 @@ portal: securityContext: container: readOnlyRootFilesystem: false -workload: - main: - podSpec: - main: - probes: - liveness: - path: /metrics - readiness: - path: /metrics - startup: - path: /metrics