Self-hosted latency and packet-loss monitoring that keeps every round-trip time, alerts when the distribution changes shape, and flags any measurement it can't vouch for.
Quick start · Why · Compare · Limits · Docs
A ground-up rebuild of the idea SmokePing made famous, in Go and React. One static binary with the UI embedded and SQLite inside: no Perl, no RRDtool, no CGI, no Prometheus stack to stand up first.
It's 21:00. The video call stutters, the backup crawls. By 23:00 it's fine again. You call the ISP; their test says your line averages 12 ms. They're not lying, exactly: nine pings in ten take 8 ms and one takes 50, and that averages to about 12. A median can sit between two paths and describe neither. And a monitor that rolls last month into hourly averages has already thrown away the evenings you were trying to prove.
smokeng is built on one rule:
Never present a number claiming more certainty than is known.
Three things follow from it.
1. Nothing is averaged away. Every interval's full set of RTTs is stored at the resolution it was measured, and drawn as density smoke at every zoom level. A tight band, a haze, a long tail and two separate bands look different, because they are different faults. Change the interval or the ping count later and the history stays: every row describes itself.
2. It alerts on shape, not just thresholds. Next to loss, median, p95 and spread, a shape rule
fires when the distribution drifts from its baseline (Wasserstein distance) and a bimodality rule
when one path turns into two, against a rolling baseline or a "golden" window you capture. The firing
alert shows reference and current distribution overlaid. Rules fire once and clear once, with
hysteresis both ways, and their state survives a restart.
3. It flags its own faults. ICMP and DNS are kernel-timestamped on Linux. Anything that isn't, and
any interval with dropped replies, a clock step or an ICMP error, carries a badge on the graph, so you
can tell "the network was bad" from "the monitor was busy". Dropped replies are kept out of loss
and clock steps out of latency, so they cannot fire an alert. No data is drawn as a gap, never as a line or a
fake 0%, and real loss under 0.1% reads <0.1%, not 0.0%.
Linux (amd64 below; arm64 and arm builds too, plus macOS on Apple silicon for development):
# 1. Download and verify
curl -fsSLO https://github.com/Timdebruijn/smokeng/releases/latest/download/smokeng-linux-amd64
curl -fsSL https://github.com/Timdebruijn/smokeng/releases/latest/download/SHA256SUMS |
grep smokeng-linux-amd64 | sha256sum -c -
# (SHA256SUMS only catches a broken download; Getting started shows the attestation check)
chmod +x smokeng-linux-amd64 && sudo mv smokeng-linux-amd64 /usr/local/bin/smokeng
# 2. Allow unprivileged ICMP (no root, no setuid helper), now and after a reboot.
# This allows every group; for a service, narrow it to its gid (Getting started, step 2)
echo 'net.ipv4.ping_group_range = 0 2147483647' | sudo tee /etc/sysctl.d/99-smokeng.conf
sudo sysctl -p /etc/sysctl.d/99-smokeng.conf
# 3. Say what to measure
cat > targets.toml <<'EOF'
[defaults]
interval_s = 60
pings_per_interval = 20
[targets."Internet/cloudflare"]
host = "1.1.1.1"
address_family = "v4"
[targets."Internet/quad9"]
host = "9.9.9.9"
address_family = "v4"
[targets."Internet/cloudflare-dns"]
host = "one.one.one.one"
address_family = "both"
EOF
smokeng config import --db smokeng.db targets.toml
# 4. Run
smokeng serve --db smokeng.db --listen 127.0.0.1:8080one.one.one.one is measured over IPv4 and over IPv6 as two series, drawn as two plots, v4 above v6.
Open http://127.0.0.1:8080. The first measurements land after one interval; the smoke reads well after a few. Without OIDC configured, smokeng listens on loopback only. Next: Getting started · hardened systemd service · Ansible role. There is no container image yet.
Coming from SmokePing? Bring your Targets file:
smokeng config import-smokeping --dry-run /etc/smokeping/config.d/Targets # preview
smokeng config import-smokeping --db smokeng.db /etc/smokeping/config.d/TargetsThe tree, per-node settings and probe types come across; anything it can't translate is warned about, never silently dropped. RRD history can't come along: it was already consolidated. Migrating from SmokePing →
Prove it to your ISP. Measure your gateway, the ISP's first hop and a public resolver, and read them on one shared crosshair: "my link" and "their network" separate at a glance. When the evening loss shows up, it is in the graph with timestamps and in an availability report you can download as CSV. Availability is always shown next to coverage, so a gap passes for neither uptime nor downtime.
Find the cause. Ten probe types, each producing a real RTT distribution: icmp, dns, tcp,
http, https, irtt, ntp, doh, stamp and quic. A resolver that crawls behind a box that pings fine, TCP where ICMP is
rate-limited, HTTPS for what users actually wait on. Route changes seen from the master are marked on the same time axis.
Drop an agent elsewhere and compare vantage points: each one is its own series, never averaged.
Run it for other people. One subtree per customer or site, an agent at each. OIDC grants scope a
group to its subtree, and that subtree is presented as the whole installation: foreign targets don't
look forbidden, they look like they don't exist. (Grants restrict nothing until you start the server
with --default-role none.) Access control →
| Remote agents | The same binary in another mode. Push-only, so they work behind NAT. One-time enrolment tokens, Ed25519-signed requests, first write wins, and a local buffer that rides out a master outage and back-fills the graphs. Agents receive data, never code. Agents → |
| Alerting | Loss, median, p95, spread, shape and bimodality. Acknowledge, silences and booked maintenance windows built in; delivery to an Alertmanager v2 webhook. smokeng alerts replay shows when a rule, even one not yet imported, would have fired over stored history. Alerting → |
| Target tree | Settings inherit down the tree, and the admin UI shows per value whether it is set here or inherited, and from where. Configuration → |
| GitOps | Targets, alert rules and grants round-trip through one TOML file; silences and enrolled agents stay in the database. Import is declarative: absent targets are disabled, not deleted. Configuration → |
| Access | OIDC login (Authentik, Keycloak, Entra, Okta, …). Viewer and editor grants per subtree; admin is global. Access control → |
| Reports | Availability per vantage point over 24 h, 7 d or 30 d, with an outage list, CSV export and an API. |
| Operations | Prometheus /metrics for smokeng's own health, documented systemd hardening, an Ansible role, and releases with SHA256SUMS and signed build provenance. Operations → |
| Accessibility | Higher-contrast, larger-text and colour-blind-safe palettes; ⌘K / Ctrl+K jumps to any target. Partially conformant with WCAG 2.2 AA, by self-evaluation. Statement → |
![]() |
![]() |
![]() |
![]() |
Under the hood: storage, probes and quality flags
What is stored. One row per target, vantage point and interval: sent, received, a quality bitfield, an ICMP error code, the positions of the lost probes where those are known and the loss was partial, and the sorted RTTs in microseconds as delta-varints. Nothing is averaged or downsampled when it is written, when it ages or when it is drawn. At a 60 s interval that is about 28 MB per series per year (estimate and examples); SQLite stays comfortable into the low thousands of series. Retention is opt-in per subtree and deletes whole intervals; it never coarsens them.
How it measures.
| Probe | Measures | Timestamps on Linux |
|---|---|---|
icmp |
echo request to reply, unprivileged datagram socket | kernel, both directions |
dns |
query to answer; the target is the resolver | kernel, both directions |
tcp |
SYN to completed handshake | userspace, flagged |
http / https |
request to response, fresh connection, TLS included | userspace, flagged |
irtt |
UDP session against an irtt server you run | userspace, flagged |
ntp |
NTP request to a time server you run, less the server's hold time | kernel, both directions |
doh |
DNS query over HTTPS (RFC 8484), fresh connection, both handshakes included | userspace, flagged |
stamp |
STAMP session (RFC 8762) against a reflector you run, less the reflector's hold time | kernel, both directions |
quic |
QUIC Version Negotiation round trip to a QUIC server; no handshake, certificate or HTTP/3 | kernel, both directions |
probe_mode sends the N probes of an interval as a burst or spreads them across it.
Quality flags, shown as badges on the graph:
| Badge | What it tells you |
|---|---|
userspace TX / RX |
scheduler jitter is in the number; the smoke is wider than the network |
raw socket |
the ping_group_range sysctl is not set, so smokeng fell back to a raw socket |
dropped replies |
the socket receive queue overflowed, so some of the loss is smokeng's |
clock step |
wall clock and monotonic clock diverged; those RTTs are not trusted |
| ICMP error, by name | "administratively prohibited" is a different finding from silence |
not sent |
the probes never went out; the reason says why. Counted as lost, not drawn as empty |
a probe error: connection refused, HTTP 503, DNS SERVFAIL, … |
why tcp, http(s), dns, doh, ntp, quic or stamp probes failed at the service; these are the loss |
positional loss |
the loss sits at fixed places in the send order; consistent with rate limiting by the target, not proof of it |
The data model, encoding and render pipeline: DESIGN.md and Reading the graphs. What each probe can and cannot tell you: Probes.
- Latency-shaped probes only. No up/down checks, no SNMP, no status pages.
- One notifier: an Alertmanager v2 webhook. Email, chat and escalation go through Alertmanager.
- Linux for real measurements. Kernel timestamps, drop counting, clock-step detection and path discovery are Linux-only; macOS works for development with every measurement flagged.
tcp,http(s),dohandirttare userspace-timed, and say so on the graph.- SQLite scale: comfortable into the low thousands of series. No downsampling, by design.
- No local accounts: OIDC, or unauthenticated on loopback. Agents need NTP within ±5 minutes.
- One master, no HA. A single SQLite writer; recovery is a restore from backup.
- No API tokens. The API takes the browser session; automation goes through the CLI on the host.
- No container image yet; a binary, systemd units and an Ansible role.
- One maintainer. Security reports go through SECURITY.md.
Every tool here is good at what it was built for.
| smokeng | SmokePing | Uptime Kuma | blackbox_exporter + Grafana | |
|---|---|---|---|---|
| Built for | Latency and loss distributions | Latency and loss distributions | Up/down and response time | General probing in a Prometheus stack |
| Per-interval distribution | Every sample, never consolidated | Per round, consolidated in RRD as it ages | One value per check | One value per scrape; smokeping_prober adds histograms |
| Alert on distribution shape | Shape and bimodality rules | Threshold and pattern matchers | Up/down, response time | PromQL on what you stored |
| Notification channels | Alertmanager webhook | Email, scripts | Many built in | Alertmanager |
| Multiple vantage points | Signed push agents, buffered | Master/slave | Not natively | One exporter per site |
| Deploy | One static binary | Perl, RRDtool, CGI, a web server | Node or Docker | Exporter, Prometheus, Grafana |
| Maturity | Young, one maintainer | Proven over two decades, still maintained | Large community | Industry standard |
Pick something else if you need status pages or many notification channels (Uptime Kuma, Gatus), you are happy with per-scrape values inside an existing Prometheus stack (blackbox_exporter), you want hop-by-hop mtr reports next to latency (PingScope; smokeng records whether the route changed, not per-hop latency), or you want Telegram and email alerts built in rather than through Alertmanager (PingScope).
2026 also brought other SmokePing successors, each with real strengths: smokestack stores DDSketch histograms with bounded error, which keeps storage small and percentiles accurate across rollups; heliograph keeps raw samples on TimescaleDB with mTLS agents; smoketrace puts traceroute and latency on one time axis; PingScope measures IPv4 and IPv6 side by side per target, runs mtr automatically while a target degrades, and ships Telegram and email alerts with a replay preview behind a one-script installer, keeping per-round data for 14 days by default and hourly quantile summaries after that. smokeng's trade-off is exact samples at about 28 MB per series per year, with shape alerting, self-flagged measurements and subtree tenancy on top.
Start at the documentation index. The most used pages: Getting started · Proving a problem · Reading the graphs · Troubleshooting · Operations · Why it's built this way: DESIGN.md
git clone https://github.com/Timdebruijn/smokeng.git && cd smokeng
make build # Go 1.27+; no Node needed, web/dist is committed
make check # what CI runsOr go install github.com/timdebruijn/smokeng/cmd/smokeng@latest.
MIT, see LICENSE. Every release ships THIRD-PARTY-NOTICES; nothing copyleft is linked in.
Your ISP says the line is fine. Go get the graph.
Download the latest release · Getting started · ⭐ Star the repo if it found something for you





