smokeping-exporter

by alekc

Helm chartv0.4.0App v0.12.0Apache-2.0Verified publisher

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

NameEmailUrl
alekc[email protected]https://blog.alekc.org

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
annotations.deploymentobject{}Deployment's annotations
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
config.bucketsstring"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_formatstring"logfmt"Output format of log messages. One of: [logfmt, json]
config.log_levelstring"info"LogLevel One of: [debug, info, warn, error]
config.privilegedbooltrueRun in privileged ICMP mode
config.targets[0].hosts[0]string"8.8.8.8"
config.targets[0].intervalstring"1s"
config.targets[0].networkstring"ip"
config.targets[0].protocolstring"icmp"
config.targets[0].sizeint56
deployment.strategyobject{"type":"RollingUpdate"}Deployment strategy
envobject{"full":[],"simple":{}}environment values
env.fulllist[]full envs, they will be rendered as written here. Useful if you need to use secrets/cm
env.simpleobject{}simple key: val based env vars
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"quay.io/superq/smokeping-prober"
image.tagstring""
imagePullSecretslist[]
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""
nodeSelectorobject{}
podAnnotationsobject{}
podSecurityContextobject{}
replicaCountint1
resourcesobject{}
securityContextobject{}
service.portint9374
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
serviceMonitor.additionalLabelsobject{}Additional labels for the ServiceMonitor, e.g. to match a Prometheus serviceMonitorSelector
serviceMonitor.createboolfalse
serviceMonitor.namespacestring"monitoring"
tolerationslist[]

Gotchas

  • Raw ICMP pings (config.privileged: true, the default) need CAP_NET_RAW. The image runs as root with no dropped capabilities out of the box, so this works with the chart's default securityContext: {}. If you harden securityContext (runAsNonRoot, capabilities.drop: [ALL], ...), add capabilities.add: [NET_RAW] back explicitly or every ping will fail with a permission error. Setting config.privileged: false switches the prober to UDP pings instead, which don't need the capability at all.
  • config.targets changes trigger a rolling restart via the Deployment's checksum/config annotation, there's no live-reload of the ConfigMap.
  • serviceMonitor.create: true renders the ServiceMonitor into serviceMonitor.namespace (default monitoring), not the release's own namespace, matching where most clusters run the Prometheus Operator. Its namespaceSelector points 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, set serviceMonitor.additionalLabels accordingly 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartsmokeping-exporter is pinned at v0.4.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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