diff --git a/speedtest-exporter/Chart.yaml b/speedtest-exporter/Chart.yaml index c433dd7..5eeccd4 100644 --- a/speedtest-exporter/Chart.yaml +++ b/speedtest-exporter/Chart.yaml @@ -3,7 +3,7 @@ name: speedtest-exporter description: icon: https://b.cdnst.net/images/favicons/favicon-180.png type: application -version: 0.1.0 +version: 0.1.1 # renovate: image=ghcr.io/miguelndecarvalho/speedtest-exporter appVersion: "3.5.4" maintainers: diff --git a/speedtest-exporter/README.adoc b/speedtest-exporter/README.adoc index f0a4e82..68fa28c 100644 --- a/speedtest-exporter/README.adoc +++ b/speedtest-exporter/README.adoc @@ -2,7 +2,7 @@ = speedtest-exporter -image::https://img.shields.io/badge/Version-0.1.0-informational?style=flat-square[Version: 0.1.0] +image::https://img.shields.io/badge/Version-0.1.1-informational?style=flat-square[Version: 0.1.1] image::https://img.shields.io/badge/Version-application-informational?style=flat-square[Type: application] image::https://img.shields.io/badge/AppVersion-3.5.4-informational?style=flat-square[AppVersion: 3.5.4] == Maintainers @@ -72,11 +72,21 @@ helm uninstall speedtest-exporter-release | `80` | +| config.cacheFor +| int +| `0` +| cache result for seconds + | config.server | string | `nil` | speedtest-serverid +| config.timeout +| int +| `90` +| timeout of speedtest + | fullnameOverride | string | `""` @@ -219,7 +229,7 @@ helm uninstall speedtest-exporter-release | prometheus.servicemonitor.scrapeTimeout | string -| `"1m"` +| `"2m"` | scrape timeout | readinessProbe.httpGet.path diff --git a/speedtest-exporter/templates/deployment.yaml b/speedtest-exporter/templates/deployment.yaml index 166d068..6ec8bba 100644 --- a/speedtest-exporter/templates/deployment.yaml +++ b/speedtest-exporter/templates/deployment.yaml @@ -43,6 +43,14 @@ spec: - name: "SPEEDTEST_SERVER" value: {{ . | quote }} {{- end }} + {{- with .Values.config.cacheFor }} + - name: "SPEEDTEST_CACHE_FOR" + value: {{ . | quote }} + {{- end }} + {{- with .Values.config.timeout }} + - name: "SPEEDTEST_TIMEOUT" + value: {{ . | quote }} + {{- end }} ports: - name: http containerPort: 9798 diff --git a/speedtest-exporter/values.yaml b/speedtest-exporter/values.yaml index 1989fa0..4dc6d65 100644 --- a/speedtest-exporter/values.yaml +++ b/speedtest-exporter/values.yaml @@ -17,6 +17,10 @@ image: config: # -- speedtest-serverid server: + # -- cache result for seconds + cacheFor: 0 + # -- timeout of speedtest + timeout: 90 imagePullSecrets: [] nameOverride: "" @@ -58,7 +62,7 @@ prometheus: # -- interval interval: 1h # -- scrape timeout - scrapeTimeout: 1m + scrapeTimeout: 2m grafana: dashboards: