smokeping-exporter
by alekc
Prometheus exporter for ICMP/UDP latency and packet loss (smokeping_prober), exposing per-target ping histograms instead of raw motion or uptime checks.
About this chart
smokeping-exporter
Prometheus exporter for ICMP/UDP latency and packet loss (smokeping_prober), exposing per-target ping histograms instead of raw motion or uptime checks.
smokeping_prober pings a configured list of targets on a schedule and exposes a Prometheus histogram of the round-trip latency and packet loss for each one, the same idea as the classic Smokeping tool but as a Prometheus exporter rather than its own web UI.
Quick start
helm repo add alekc https://charts.alekc.dev
helm repo update
helm install my-smokeping-exporter alekc/smokeping-exporter \
--set config.targets[0].hosts[0]=8.8.8.8
Or directly from the OCI registry, no helm repo add needed:
helm install my-smokeping-exporter oci://charts.alekc.dev/smokeping-exporter --version 0.2.0
Verifying the signature
curl -sO https://charts.alekc.dev/pubring.gpg
helm pull oci://charts.alekc.dev/smokeping-exporter --version 0.2.0 --verify --keyring pubring.gpg
A minimal working values.yaml:
config:
targets:
- hosts:
- 8.8.8.8
interval: 1s
network: ip
protocol: icmp
size: 56
serviceMonitor:
create: true
namespace: monitoring
Maintainers
| Name | Url | |
|---|---|---|
| alekc | [email protected] | https://blog.alekc.org |
Source Code
- https://gitlab.com/alexander-chernov/helm/smokeping-exporter
- https://github.com/SuperQ/smokeping_prober
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| annotations.deployment | object | {} | Deployment's annotations |
| autoscaling.enabled | bool | false | |
| autoscaling.maxReplicas | int | 100 | |
| autoscaling.minReplicas | int | 1 | |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | |
| config.buckets | string | "5e-05,0.0001,0.0002,0.0004,0.0008,0.0016,0.0032,0.0064,0.0128,0.0256,0.0512,0.1024,0.2048,0.4096,0.8192,1.6384,3.2768,6.5536,13.1072,26.2144" | A comma delimited list of buckets to use |
| config.log_format | string | "logfmt" | Output format of log messages. One of: [logfmt, json] |
| config.log_level | string | "info" | LogLevel One of: [debug, info, warn, error] |
| config.privileged | bool | true | Run in privileged ICMP mode |
| config.targets[0].hosts[0] | string | "8.8.8.8" | |
| config.targets[0].interval | string | "1s" | |
| config.targets[0].network | string | "ip" | |
| config.targets[0].protocol | string | "icmp" | |
| config.targets[0].size | int | 56 | |
| deployment.strategy | object | {"type":"RollingUpdate"} | Deployment strategy |
| env | object | {"full":[],"simple":{}} | environment values |
| env.full | list | [] | full envs, they will be rendered as written here. Useful if you need to use secrets/cm |
| env.simple | object | {} | simple key: val based env vars |
| fullnameOverride | string | "" | |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "quay.io/superq/smokeping-prober" | |
| image.tag | string | "" | |
| imagePullSecrets | list | [] | |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| podAnnotations | object | {} | |
| podSecurityContext | object | {} | |
| replicaCount | int | 1 | |
| resources | object | {} | |
| securityContext | object | {} | |
| service.port | int | 9374 | |
| service.type | string | "ClusterIP" | |
| serviceAccount.annotations | object | {} | |
| serviceAccount.create | bool | true | |
| serviceAccount.name | string | "" | |
| serviceMonitor.additionalLabels | object | {} | Additional labels for the ServiceMonitor, e.g. to match a Prometheus serviceMonitorSelector |
| serviceMonitor.create | bool | false | |
| serviceMonitor.namespace | string | "monitoring" | |
| tolerations | list | [] |
Gotchas
- Raw ICMP pings (
config.privileged: true, the default) needCAP_NET_RAW. The image runs as root with no dropped capabilities out of the box, so this works with the chart's defaultsecurityContext: {}. If you hardensecurityContext(runAsNonRoot,capabilities.drop: [ALL], ...), addcapabilities.add: [NET_RAW]back explicitly or every ping will fail with a permission error. Settingconfig.privileged: falseswitches the prober to UDP pings instead, which don't need the capability at all. config.targetschanges trigger a rolling restart via the Deployment'schecksum/configannotation, there's no live-reload of the ConfigMap.serviceMonitor.create: truerenders the ServiceMonitor intoserviceMonitor.namespace(defaultmonitoring), not the release's own namespace, matching where most clusters run the Prometheus Operator. ItsnamespaceSelectorpoints back at the release namespace so Prometheus still finds the Service.- Prometheus Operator only scrapes ServiceMonitors matching its
serviceMonitorSelector. If your Prometheus selects by label, setserviceMonitor.additionalLabelsaccordingly or the target will never appear.
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 smokeping-exporter with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has smokeping-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 chartsmokeping-exporter is pinned at v0.4.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