speedtest-exporter
by alekc
Prometheus exporter running periodic Ookla Speedtest checks, exposing latency, jitter, and up/down throughput as metrics
About this chart
speedtest-exporter
Prometheus exporter running periodic Ookla Speedtest checks, exposing latency, jitter, and up/down throughput as metrics
speedtest-exporter runs the
Ookla speedtest-cli on a schedule and exposes latency, jitter, and up/down throughput as
Prometheus metrics on /metrics.
Quick start
helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-speedtest-exporter alekc/speedtest-exporter
Or directly from the OCI registry, no helm repo add needed:
helm install my-speedtest-exporter oci://charts.alekc.dev/speedtest-exporter --version 0.2.0
Verifying the signature
curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/speedtest-exporter --version 0.2.0 --verify --keyring pubring.gpg
A minimal working values.yaml, if you want a specific speedtest server rather than
whichever Ookla picks automatically:
env:
- name: SPEEDTEST_SERVER
value: "24281"
Maintainers
| Name | Url | |
|---|---|---|
| alekc | [email protected] |
Source Code
- https://github.com/MiguelNdeCarvalho/speedtest-exporter
- https://gitlab.com/alexander-chernov/helm/speedtest-exporter
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalManifests | object | {} | Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends. |
| affinity | object | {} | |
| annotations.deployment | object | {} | Deployment's annotations |
| commonAnnotations | object | {} | Annotations merged onto every resource this chart renders, in addition to each resource's own dedicated annotations field. |
| commonLabels | object | {} | Labels merged onto every resource this chart renders. Never reaches selector/matchLabels, safe to change without forcing a Deployment recreate. |
| env | list | [] | Extra environment variables, rendered as a raw list of {name, value} entries, see https://docs.miguelndecarvalho.pt/projects/speedtest-exporter/ |
| extraContainers | list | [] | Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends. |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/miguelndecarvalho/speedtest-exporter" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| initContainers | list | [] | Extra init containers appended to the pod spec, templated with tpl. |
| livenessProbe | object | {"enabled":true,"httpGet":{"path":"/","port":"http"}} | Pod liveness probe. Deliberately targets / rather than /metrics: /metrics runs a real Ookla speedtest when its internal cache expires, probing it on top of Prometheus's own scrape would trigger extra speedtests and risk provider-side rate limiting. / is a static, effectively free page in the exporter's own source. Set enabled: false to disable rather than overriding the block to {}/null, Helm's deep merge would leave this default in place either way. |
| nameOverride | string | "" | |
| networkPolicy.annotations | object | {} | Annotations to add to the NetworkPolicy |
| networkPolicy.enabled | bool | false | Render a NetworkPolicy restricting ingress to the Service port and egress to DNS plus a broad allowance. The exporter fetches Ookla speedtest servers over the internet, which isn't a small fixed CIDR, so egress is broad by default, see Gotchas. |
| networkPolicy.extraEgress | list | [] | Additional raw egress rules, appended as-is under spec.egress. |
| networkPolicy.extraIngress | list | [] | Additional raw ingress rules, appended as-is under spec.ingress. |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| readinessProbe | object | {"enabled":true,"httpGet":{"path":"/","port":"http"}} | Pod readiness probe. Same / reasoning as livenessProbe. |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.annotations | object | {} | Annotations to add to the Service |
| service.port | int | 9798 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| serviceMonitor.additionalLabels | object | {} | |
| serviceMonitor.annotations | object | {} | Annotations to add to the ServiceMonitor |
| serviceMonitor.enabled | bool | true | |
| serviceMonitor.interval | string | "10m" | |
| serviceMonitor.metricsRelabelings | list | [] | |
| serviceMonitor.namespace | string | "" | |
| serviceMonitor.relabelings | list | [] | |
| serviceMonitor.scrapeTimeout | string | "2m" | |
| tolerations | list | [] |
Gotchas
/metricsruns a real speedtest, it isn't a passive counter dump. The exporter caches the result and only re-runs the test once the cache expires, so a tight Prometheusscrape_interval(or anything else hitting/metricsfrequently, including alivenessProbe/readinessProbepointed at it) can trigger far more speedtests than intended and risk provider-side rate limiting. This chart's own probes deliberately target/instead, a static page in the exporter's own source, precisely to avoid that.networkPolicy.enabledallows broad egress to0.0.0.0/0by default. The exporter connects to arbitrary Ookla speedtest servers across the internet, which isn't a small fixed CIDR. Narrow it withnetworkPolicy.extraEgressonly if you pinSPEEDTEST_SERVERto a server at a known, stable address.serviceMonitor.namespacecan differ from the release namespace (some Prometheus Operator setups expect ServiceMonitors to live in a specific namespace); the ServiceMonitor itself still selects the exporter's Service vianamespaceSelector, scoped correctly to wherever the chart was actually installed.
Upgrade notes
No breaking changes yet. This section will list migration steps for any future release with
a kind: removed or kind: changed entry in artifacthub.io/changes that requires one.
Deploy speedtest-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has speedtest-exporter on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartspeedtest-exporter is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply