fix(speedtest-exporter): improve config parameter

This commit is contained in:
WrenIX 2024-07-05 12:39:34 +02:00
parent b7910666e9
commit 3aad4adb1e
Signed by: wrenix
GPG key ID: 7AFDB012974B1BB5
4 changed files with 26 additions and 4 deletions

View file

@ -3,7 +3,7 @@ name: speedtest-exporter
description: description:
icon: https://b.cdnst.net/images/favicons/favicon-180.png icon: https://b.cdnst.net/images/favicons/favicon-180.png
type: application type: application
version: 0.1.0 version: 0.1.1
# renovate: image=ghcr.io/miguelndecarvalho/speedtest-exporter # renovate: image=ghcr.io/miguelndecarvalho/speedtest-exporter
appVersion: "3.5.4" appVersion: "3.5.4"
maintainers: maintainers:

View file

@ -2,7 +2,7 @@
= speedtest-exporter = 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/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] image::https://img.shields.io/badge/AppVersion-3.5.4-informational?style=flat-square[AppVersion: 3.5.4]
== Maintainers == Maintainers
@ -72,11 +72,21 @@ helm uninstall speedtest-exporter-release
| `80` | `80`
| |
| config.cacheFor
| int
| `0`
| cache result for seconds
| config.server | config.server
| string | string
| `nil` | `nil`
| speedtest-serverid | speedtest-serverid
| config.timeout
| int
| `90`
| timeout of speedtest
| fullnameOverride | fullnameOverride
| string | string
| `""` | `""`
@ -219,7 +229,7 @@ helm uninstall speedtest-exporter-release
| prometheus.servicemonitor.scrapeTimeout | prometheus.servicemonitor.scrapeTimeout
| string | string
| `"1m"` | `"2m"`
| scrape timeout | scrape timeout
| readinessProbe.httpGet.path | readinessProbe.httpGet.path

View file

@ -43,6 +43,14 @@ spec:
- name: "SPEEDTEST_SERVER" - name: "SPEEDTEST_SERVER"
value: {{ . | quote }} value: {{ . | quote }}
{{- end }} {{- end }}
{{- with .Values.config.cacheFor }}
- name: "SPEEDTEST_CACHE_FOR"
value: {{ . | quote }}
{{- end }}
{{- with .Values.config.timeout }}
- name: "SPEEDTEST_TIMEOUT"
value: {{ . | quote }}
{{- end }}
ports: ports:
- name: http - name: http
containerPort: 9798 containerPort: 9798

View file

@ -17,6 +17,10 @@ image:
config: config:
# -- speedtest-serverid # -- speedtest-serverid
server: server:
# -- cache result for seconds
cacheFor: 0
# -- timeout of speedtest
timeout: 90
imagePullSecrets: [] imagePullSecrets: []
nameOverride: "" nameOverride: ""
@ -58,7 +62,7 @@ prometheus:
# -- interval # -- interval
interval: 1h interval: 1h
# -- scrape timeout # -- scrape timeout
scrapeTimeout: 1m scrapeTimeout: 2m
grafana: grafana:
dashboards: dashboards: