惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

www.infosecurity-magazine.com
www.infosecurity-magazine.com
月光博客
月光博客
IT之家
IT之家
博客园 - Franky
大猫的无限游戏
大猫的无限游戏
博客园 - 【当耐特】
Recorded Future
Recorded Future
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 聂微东
Last Week in AI
Last Week in AI
S
Schneier on Security
Google DeepMind News
Google DeepMind News
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
AWS News Blog
AWS News Blog
D
Docker
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
Spread Privacy
Spread Privacy
The GitHub Blog
The GitHub Blog
MongoDB | Blog
MongoDB | Blog
P
Palo Alto Networks Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
T
Tenable Blog
A
Arctic Wolf
C
Cisco Blogs
S
SegmentFault 最新的问题
T
The Exploit Database - CXSecurity.com
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Martin Fowler
Martin Fowler
G
GRAHAM CLULEY
The Register - Security
The Register - Security
Project Zero
Project Zero
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Latest news
Latest news
J
Java Code Geeks
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
T
Threatpost
L
LangChain Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
腾讯CDC
I
Intezer
Schneier on Security
Schneier on Security
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org

Hacker News: Show HN

PurrrrrFocus: Pomodoro Timer App - App Store Workflow Engine — Multi-Step Orchestration for Bun RapidPhoto: Pro Photo Editor App - App Store GitHub - DheerG/swarms: Achieve extraordinary results with claude code across a variety of tasks SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads Show HN: VCoding – A 5 MB native Windows IDE with no dynamic dependencies Show HN: LLMs don't hallucinate because they're bad at math, it's the format GitHub - Agent-FM/agentfm-core: AgentFM is a peer-to-peer network that turns everyday computers into a decentralized AI supercomputer. AgentFM lets you run massive AI workloads directly across a global mesh of idle CPUs and GPUs. Show HN: Tracking Top US Science Olympiad Alumni over Last 25 Years GitHub - Potarix/agent-hub: One place to talk to all your agents Show HN: Runtime security for AI agents(injection,tool abuse, data exfiltration) GitHub - dubeyKartikay/lazyspotify: Terminal Spotify client for macOS and Linux GitHub - the-banana-tool/king-louie: Easy to use GUI Personal AI Assistant. Win/Linux/Mac. Show HN I made my vacation rental bookable by AI agents–no Airbnb, 0% commission GitHub - basteez/jsf-autoreload: maven plugin to enable hot reload on jsf projects uvm32/hosts/host-gdbstub at main · ringtailsoftware/uvm32 GitHub - labsai/EDDI: Config-driven engine that turns JSON into production-grade AI agents. Multi-agent orchestration, 12+ LLM providers, MCP/A2A protocols, RAG, persistent memory, and enterprise compliance (EU AI Act, GDPR, HIPAA). Built on Quarkus. GitHub - glitchnsec/fortyone-oss: AI Executive Assistant Platform Quickstart | Alien GitHub - muxshed/shed: One stream in, or many. Every destination, simultaneously. No cloud middleman, no per-channel fees, no limits. GitHub - ocrbase-hq/ocrbase: 📄 PDF/IMG ->.MD/JSON Document OCR API for PaddleOCR and GLMOCR. Self-hostable. GitHub - impactjo/home-memory: MCP server that lets your AI assistant remember everything about your home. GitHub - Sets88/dbcls: DbCls is a powerful terminal database client that supports various databases GitHub - neptun2000/heor-agent-mcp GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh RollQuation: Math Puzzles - Apps on Google Play GitHub - dropbox/witchcraft Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis GitHub - opentalon/opentalon: OpenTalon is an open-source platform built from the ground up in Go as a robust alternative to OpenClaw LinkedIn™ 职位抓取工具 - Chrome 应用商店 GitHub - EdoardoBambini/Agent-Armor-Iaga: AI agents are getting tool access — shell, file system, databases, APIs, secrets. But **nobody is governing what they actually do with it**. Frameworks like LangChain, CrewAI, AutoGen, and Claude Code give agents the power to execute. Agent Armor gives you the power to control, audit, and approve every single action before it happens. HN Vibes — Week 15, Apr 7–13 2026 GitHub - chojs23/ec: Easy terminal-native 3-way git mergetool vim-like workflow GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - JakOb-dotcom/cloud-sandbox-security-analysis: Technical analysis and Proof of Concept (PoC) regarding environment variable exfiltration in containerized cloud sandboxes via side-channel data leaks. Springboards - Flint Alpha Show HN: A simpler coding agent harness GitHub - audiodude/sudomake-friends GitHub - 256thFission/mini-mythos: OSS clone of Anthropic’s Mythos harness to locate C/C++ memory vulnerabilities Show HN: OpenParallax: OS-level privilege separation for AI agent execution Hacker News Sorted - Chrome 应用商店 Show HN: How to Install Docker on Ubuntu 24.04 LTS: Complete 2026 Guide GitHub - himanshudongre/smriti GitHub - sverrirsig/claude-control: macOS desktop dashboard for monitoring and managing multiple Claude Code sessions GitHub - ory/dockertest: Write better integration tests! Dockertest helps you boot up ephermal docker images for your Go tests with minimal work. Chiral - Chrome 应用商店 Show HN: Two Claudes collaborating through shared memory on a $100 mini-PC GitHub - pmichaillat/latex-cv: Minimalist LaTeX template for academic CVs GitHub - oguzbilgic/posse: A web UI for Anthropic Managed Agents. GitHub - sshiraz/depsly: Dependency risk analysis tool for npm packages ABI Add safari/agent-harness — Safari browser automation via safari-mcp by achiya-automation · Pull Request #212 · HKUDS/CLI-Anything GitHub - Halfblood-Prince/trustcheck: Verify PyPI package attestations and improve Python supply-chain security GitHub - oguzbilgic/kern-ai: Agents that do the work and show it. GitHub - bruits/satteri: High-performance Markdown and MDX processing for the JavaScript ecosystem GitHub - tylergibbs1/feedstock: High-performance web crawler and scraper for TypeScript, powered by Bun and Playwright GitHub - Grimm67123/grimmbot: The self-improving sandboxed and open-source AI agent. With persistent memory and scheduling. GitHub - whitevanillaskies/whitebloom: Local whiteboard that blooms. GitHub - hwdsl2/docker-whisper: Docker image for a self-hosted Whisper speech-to-text server with speaker diarization and OpenAI-compatible transcription and translation APIs. Powered by faster-whisper. Supports all Whisper models, NVIDIA GPU (CUDA) acceleration, JSON/SRT/VTT output, SSE streaming, offline mode, and multi-arch (amd64, arm64). GitHub - yisding/reviewwiggum GitHub - MarwanAlsoltany/serrors: Structured errors for Go: sentinel hierarchies, typed data, custom formatting, and slog integration. GitHub - soatok/age-php GitHub - Luthiraa/markitme GitHub - stagas/rtdiff: realtime git diff gui and AI-assisted commits GitHub - tombedor/excalicharts GitHub - wh1le/excalidraw-edit: Open and edit .excalidraw files from the terminal. Offline, auto-saves to disk. MalExt Sentry - Malicious Extension Scanner - Chrome 应用商店 GitHub - syi0808/asciianimesvg: Generate animated ASCII art SVGs from text. CLI, Rust library, WASM, and web editor. GitHub - zaina-ml/ml_forge: A visual-based graph node editor for training computer vision models. GitHub - anakin87/llm-rl-environments-lil-course: 🌱 A little course on Reinforcement Learning Environments for evaluating and training Language Models GitHub - takaakit/superpowers-uml: Superpowers-UML modifies Superpowers to ensure a software development workflow in which AI agents design through UML modeling. AdriByte Studio - Sviluppo Web e Soluzioni Digitali GitHub - chouligi/angel-copilot: Your personalized Angel Investment Advisor Show HN: MoodSense AI (ML and FastAPI and Gradio, Deployed on Hugging Face) Moodsense Ai - a Hugging Face Space by aman179102 GitHub - agenteractai/lodmem: Level Of Detail Context Management for Agents GitHub - ostefani/subnetlens: A fast, concurrent network scanner with a TUI and plain-text CLI, built in Go. It discovers live hosts on your network, scans their open ports, resolves hostnames, and fingerprints operating systems—delivered. Cyber Pulse: Agentic Intel - Apps on Google Play Whisper API: Self-Hostable Speech to Text Transcription The Agent-Web Protocol Stack: A Research Thesis GitHub - msmarkgu/RelayFreeLLM: A restful API designed to route user prompts to various AI model providers. Show HN: Provepy – A Python decorator that proves your code using Lean and LLMs Show HN: Pardonned.com – A searchable database of US Pardons GitHub - patrickdappollonio/dux: Dux is a terminal UI that lets you run multiple AI coding agents side by side, each in its own git worktree, with full companion terminals, macros, commit generation, and a command palette that knows more tricks than you do. kMC Crystal Simulator Show HN: HyperFlow – A self-improving agent framework built on LangGraph GitHub - stef41/vibescore: 🎵 Grade your vibe-coded project. One command, instant letter grade across security, quality, dependencies, and testing. GitHub - stef41/lmscan: 🔍 Detect AI-generated text and fingerprint which LLM wrote it. Open-source GPTZero alternative. Zero dependencies, works offline. imgur.com GitHub - visionscaper/collabmem: Enabling long-term collaboration with Agentic AI - building up episodic and world model memory over time with in-context awareness 在 Steam 上购买 FriedrichAI: Offline AI 立省 10% GitHub - atripati/ark: AI Runtime Kernel — a context operating system for AI agents. Eliminates tool bloat, loads only what’s needed, and gives LLMs their reasoning space back. GitHub - nowork-studio/toprank: Open-source Claude Code skills for SEO, SEM, Google Ads GitHub - tacomanator/sash: Lightweight macOS menu bar app for reliably cycling through windows of the current application. Appents | Social Media Management for Product-First Teams GitHub - pnhoang/youtube-spam-blocker: Automatically detects and hides spam messages in YouTube Live chat. Set rate limits, keyword filters, and block repeat offenders. GitHub - decisionnode/DecisionNode: CLI + Local MCP - A shared structured memory store across Claude Code, Cursor, Windsurf, Antigravity, and every MCP client. Semantically queryable. GitHub - AvaCodeSolutions/django-email-learning: An open source Django app for creating email-based learning platforms with IMAP integration and React frontend components. The $100K Gap in Kubernetes Security Tooling Function Calling Harness: From 6.75% to 100%
GitHub - adamf/JustRebootIt
adam_gyrosco · 2026-06-11 · via Hacker News: Show HN

A self-contained, Dockerized recorder for intermittent home-internet latency spikes — the kind where everything feels fine until a video call freezes for three seconds, and by the time you run a speed test it's gone.

It continuously measures latency, jitter and packet loss to a spread of diverse targets (your gateway, your ISP, and well-run public anchors), traces the network path to find where the latency lives, and — if you have a UniFi Dream Machine Pro — correlates all of that against WAN throughput and gateway load. Everything lands on one Grafana dashboard designed to be screenshotted or link-shared with a network engineer at your ISP (e.g. Comcast).

The probes are written in Go and run fully in parallel, so dozens of targets are measured on a tight cycle without the prober itself becoming the bottleneck.

The JustRebootIt dashboard: latency smoke, per-hop traceroute, UniFi WAN/gateway correlation, path discovery, triggered diagnostics, and AI root-cause writeups.

A real diagnosis from the dashboard above (Event #6): "The latency on 8.8.4.4 was not specific to Google — it was local bufferbloat on the WAN uplink during a traffic burst… the median RTT to every anchor jumped together, so the spike was shared across all independent paths… udm_wan_rx hit ~15.2 MB/s and WAN latency climbed from ~10–11ms baseline to 33ms. This is the classic bufferbloat pattern: the local uplink filled and queued packets. Confidence: high. Recommended action: enable Smart Queues (SQM/CAKE) on the UDM Pro with limits ~85–90% of the measured line rate — this is a local fix, not an ISP ticket." — written automatically by the AI analysis when the event fired.

                 ┌─────────────┐     ICMP ping + traceroute
                 │   prober    │────────────────────────────►  many targets
                 │   (Go)      │                                (gateway, ISP, anchors)
                 └──────┬──────┘
                        │ /metrics
   UniFi Dream   ┌──────┴──────┐
   Machine Pro ─►│ udm-exporter│  WAN throughput, gateway CPU/mem,
       (API)     │   (Go)      │  speedtest, client counts
                 └──────┬──────┘
                        │ /metrics
                 ┌──────┴──────┐        ┌─────────────┐
                 │ prometheus  │───────►│   grafana   │  http://localhost:3000
                 │  (90d TSDB) │        │ (1 dashboard)│  → lands on the dashboard
                 └─────────────┘        └─────────────┘

Quick start

git clone <this repo> && cd JustRebootIt
cp .env.example .env
$EDITOR .env                 # set UDM_URL / UDM_USERNAME / UDM_PASSWORD
$EDITOR config/targets.yml   # set your home-gateway IP (and ISP, if not Comcast)
docker compose up -d --build

Then open http://localhost:3000 — you land straight on the Home Internet Latency dashboard, no login required. That's it.

Just want the latency graphs and don't have a UniFi gateway? See Running without a UDM.

What you need to do on the UniFi Dream Machine Pro

A one-time, ~2-minute setup:

  1. Create a local admin account. In UniFi OS go to Settings → Admins & Users → Add Admin, and choose "Restrict to local access only". Do not use your Ubiquiti cloud (SSO) login — local accounts are more reliable for an API client and keep your cloud credentials out of the container.
    • A Viewer role is sufficient; the exporter only issues read-only GET /stat/* calls. Give it full local admin only if you prefer.
  2. Note the gateway URL — usually https://192.168.1.1. Put it, plus the username and password, into your .env file (UDM_URL, UDM_USERNAME, UDM_PASSWORD).
  3. (Optional) Schedule periodic Speed Tests. UniFi OS → Network → Settings → Internet → Speed Test. This populates the udm_speedtest_* panels. WAN latency, throughput, CPU/memory and client counts are reported regardless.
  4. Nothing else. The UDM presents a self-signed TLS certificate, so the exporter skips certificate verification by default (UDM_INSECURE=true). You do not need to install a cert or open any ports on the UDM.

Network permissions & capabilities

This is the one thing that can't be hand-waved: measuring latency requires sending ICMP echo (ping) packets and ICMP traceroutes, which need a raw network socket.

  • The prober container is granted the Linux NET_RAW capability in docker-compose.yml:

    prober:
      cap_add:
        - NET_RAW

    This is the minimum privilege needed — it lets the process open ICMP sockets but grants nothing else. The container does not run --privileged and runs as an unprivileged user inside a distroless image. NET_RAW is a default Docker capability, so on most hosts this works out of the box; it's listed explicitly so the requirement is visible and survives hardened/default-deny setups.

  • privileged: true in config/targets.yml is unrelated to Docker privilege — it tells the prober to use raw ICMP sockets (the reliable choice given NET_RAW) rather than unprivileged datagram-ICMP sockets, which additionally require the host sysctl net.ipv4.ping_group_range to be set.

  • No inbound ports are required for probing. The only published port is Grafana's 3000 (ports: ["3000:3000"]). Prometheus (9090) and the two exporters (9430/9431) are reachable only on the internal Docker network.

  • Outbound: the prober needs to reach the internet (ICMP) and your LAN gateway; the udm-exporter needs HTTPS to the UDM on your LAN.

First-hop / traceroute accuracy (optional)

With the default bridge network, traceroutes show one or two extra Docker/host hops before reaching your real gateway. The added latency is sub-millisecond and constant, so it does not mask spikes — but if you want the path to start exactly at your physical gateway, run the prober on the host network:

  prober:
    network_mode: host   # add this; remove its `networks:` block

and change the Prometheus scrape target for the prober job from prober:9430 to host.docker.internal:9430 (or the host's LAN IP). Most users don't need this.

Platform notes

  • Linux: works as described.
  • macOS / Windows (Docker Desktop): containers run inside a Linux VM, so NET_RAW and ICMP work, but the "host" for network_mode: host is that VM, not your Mac/PC — the bridge default is recommended there.

Configuration

Targets — config/targets.yml

This file is bind-mounted into the prober, so edits take effect on docker compose restart prober. Each target has a stable name (keep it stable so historical graphs line up), a host, a group, and an optional trace flag. Groups organize the dashboard and your reasoning:

group meaning what a spike here tells you
gateway your own router / first hop the problem is inside your house
isp your ISP's own infrastructure the problem is your ISP (show them)
anchor diverse, well-run public anchors rules out the far end being at fault
content sites/services you actually use real-world impact

The shipped defaults probe your gateway, Comcast's resolvers (75.75.75.75 / 75.75.76.76), and a spread of anchors (Cloudflare, Google, Quad9, Level3). Edit at least home-gateway to your gateway's LAN IP. If you're not on Comcast, swap the isp targets for your ISP's gateway/resolver.

Timing knobs (defaults shown) at the top of the file:

interval: 10s          # one probe cycle; pings are spread across it
pings: 20              # echo requests per target per cycle (the "smoke")
timeout: 2s            # per-reply timeout (must be < interval)
privileged: true       # raw ICMP sockets (see Network permissions)
trace_interval: 60s    # traceroutes are heavier; run them less often
trace_max_hops: 30
trace_timeout: 2s

Path discovery — diverse, short routes (automatic)

Probing a dozen destinations that all leave your house the same way is mostly redundant: when that shared segment hiccups, everything spikes at once and you learn nothing about where. The discovery: block fixes this. Periodically it traces a candidate pool, then promotes a path-diverse subset to active probing — keeping the ones whose 2nd/3rd hops differ and that reach their destination in the fewest hops (closer targets localize a fault more precisely). Selected candidates are probed and traced under the group discovered; the always-on targets above are never touched.

discovery:
  enabled: true
  interval: 15m         # re-trace the pool and re-select this often
  max_targets: 6        # how many diverse paths to actively probe
  max_hops: 8           # short traces during discovery (only early hops matter)
  max_reach_hops: 12    # ignore candidates farther than this
  candidates:
    - { name: cloudflare-alt, host: 1.0.0.1 }
    - { name: opendns-a,      host: 208.67.222.222 }
    # ... a broad pool spanning distinct operators/ASNs

Candidate names must be unique and must not collide with the always-on targets. The dashboard's Active discovered paths panel shows which are currently selected, and Candidate distance shows how many hops away each one is.

Triggered diagnostics — deeper tests during a spike

Intermittent problems are usually gone before you can react. The diagnostics: block watches every probe cycle and, the moment a target looks anomalous, fires a burst of deeper tests automatically — capturing evidence while the problem is still happening:

  • a fresh traceroute (a path snapshot taken during the event);
  • a TCP handshake time to the target — because many ISPs deprioritize ICMP, this proves whether real traffic is affected, not just pings; and
  • a DNS resolution time — slow lookups masquerade as "the internet is slow".

A run fires when a cycle's median RTT exceeds the target's rolling baseline by both a factor and an absolute margin (so neither tiny jitter nor a small relative bump alone trips it), or when loss crosses a threshold — debounced by a cooldown so a sustained event triggers once, not every cycle.

diagnostics:
  enabled: true
  latency_factor: 3.0       # trigger when median > 3x the rolling baseline
  latency_abs_margin: 30ms  # ...and at least 30ms above it
  loss_threshold: 0.1       # or when loss >= 10%
  cooldown: 60s             # at most one run per target per minute
  baseline_alpha: 0.2       # EWMA smoothing for the "normal latency" baseline
  tcp_port: 443             # handshake port for the TCP latency test
  dns_probe: www.google.com # name resolved & timed during a run
  workers: 2                # concurrent diagnostic runs

Every trigger also drops a red annotation across the whole dashboard, so you can line up exactly when deeper tests fired against the latency and WAN graphs.

AI root-cause analysis — "why did this happen?" (optional)

The mechanical diagnostics gather raw signal; this turns it into an explanation. When an event fires, a Claude agent investigates it and writes a plain-language root cause onto the dashboard. It's given read-only tools and decides how to use them:

  • query Prometheus — to see whether the spike hit every target at once (upstream/ISP) or just one path, and whether it lined up with the WAN saturating (bufferbloat);
  • traceroute / DNS lookup — to re-probe the path and resolution now;
  • RDAP lookup — to name the operator/ASN that owns a slow or lossy hop (so a bad segment gets attributed to Comcast vs. a transit provider).

Each event gets a monotonic Event #N (also exported as diagnostic_event_id{target}), and the agent's writeup is posted as a numbered, tagged Grafana annotation. They appear as purple markers on the timeline and in the "AI latency diagnoses" panel at the bottom of the dashboard — so every spike, its diagnostic run, and its explanation line up by number.

This is fully optional and off by default. It activates only when you set an API key:

# in .env
ANTHROPIC_API_KEY=sk-ant-...

With no key, the prober simply skips the analysis — everything else works unchanged. Tunables live under diagnostics.ai in config/targets.yml:

diagnostics:
  ai:
    enabled: true
    model: claude-opus-4-8   # set claude-sonnet-4-6 for cheaper, faster analysis
    max_iterations: 12       # cap on the agent's tool-use loop per event

Two things to know before enabling it:

  • It sends event telemetry to the Anthropic API — your traceroute hops, IP addresses, and ISP identity are part of what the agent reasons over. Don't enable it if that's not acceptable.
  • It costs per investigation. Opus is the default for best diagnosis; switch model to claude-sonnet-4-6 to cut cost.

Cost control — investigations are coalesced. A single shared incident (e.g. bufferbloat) spikes every target at once, which would otherwise launch dozens of identical investigations. To prevent that, each event gets a cheap signature (reason + whether it's a shared cross-target incident or an isolated path), and:

  • the first event of a signature gets a full investigation; repeats within repeat_ttl (default 1h) reuse that analysis with no API call;
  • a single shared incident collapses to one signature once shared_threshold targets trip within shared_window — one investigation, not one per target;
  • a global min_interval (default 3m) and daily_budget (default 50) cap spend even across distinct signatures.

Every trigger is still recorded (diagnostic_triggered_total, the red markers), so nothing is hidden — only the paid investigations are deduplicated. Reused / throttled events are counted in diagnostic_ai_suppressed_total{reason}. Tune the knobs under diagnostics.ai in config/targets.yml.

The agent posts annotations using the Grafana admin account (GRAFANA_ADMIN_PASSWORD from .env) over the internal Docker network; no ports are exposed for this.

Secrets / Grafana — .env

See .env.example. The .env file holds your UDM password and is gitignored. Grafana defaults to anonymous, login-free viewing so the stack is zero-click and the dashboard is easy to link-share; set GRAFANA_ANON_ENABLED=false and GRAFANA_DISABLE_LOGIN=false if you ever expose it beyond your trusted LAN.

Reading the dashboard

The dashboard (Home Internet Latency) is built to be read top to bottom and shared as-is:

  1. Overview — at-a-glance status tiles: worst packet loss, gateway WAN latency, WAN up/down throughput, gateway CPU/memory. Red = bad right now.
  2. Median latency / Packet loss — all targets — the diagnosis row:
    • Spikes on every target at once → upstream (your ISP / WAN).
    • Spikes on one target only → that specific path.
    • Loss to your gateway → inside the house; loss to anchors but not the gateway → the ISP.
  3. Smoke (per target) — pick a target in the Target dropdown. The shaded band is the spread from best to worst ping in each cycle (jitter); the inner band is p10–p90; the bold line is the median. A wide band with a flat median means the connection is jittery even when "average" latency looks fine — a classic call-quality killer.
  4. Per-hop latency (traceroute) — which hop is the first to spike owns the problem. Hover a hop to see the router address (useful to hand to your ISP).
  5. UniFi Dream Machine — WAN throughput, gateway CPU/memory, gateway-reported latency/speedtest, client counts, all on the same time axis. If latency spikes line up with the WAN maxing out, that's congestion/bufferbloat, not an ISP fault — fix it with QoS/Smart Queues rather than a support ticket.
  6. Path discovery & triggered diagnostics — which diverse paths are currently active, how far away each candidate is, when deeper diagnostics fired, and the TCP-handshake / DNS-lookup times they captured. Red annotations across the whole dashboard mark each diagnostic trigger, so you can align "deeper tests fired here" with the latency and WAN graphs above.
  7. AI latency diagnoses (if enabled) — the Claude agent's numbered, plain-language root cause for each event. Purple annotations mark them on the timeline; the panel lists the writeups. Empty unless ANTHROPIC_API_KEY is set.

Sharing with your ISP: select the time window around an incident, take a screenshot of the median-latency and traceroute panels (and the WAN-throughput panel to pre-empt "you were just using it heavily"), or — since viewing is anonymous — send them the Grafana link if they're on your network/VPN. The stack includes the Grafana image renderer, so you can export clean PNGs server-side instead of taking manual screenshots:

  • Whole dashboard → the "Export dashboard as PNG" link in the dashboard's top-right bar renders the entire board (current time range + selected target) to a single PNG in a new tab; right-click → Save, or send the link.
  • A single panel → its menu → Share → Direct link rendered image.

(The full-dashboard render uses a fixed height=3600 in the link URL (docker/grafana/dashboards/latency.json). If you add rows and the bottom gets cut off, raise it — and keep RENDERING_VIEWPORT_MAX_HEIGHT on the renderer service in docker-compose.yml at or above that value, or the renderer clamps it.)

Metrics reference

Prober (:9430/metrics):

metric meaning
probe_up{target,group} 1 if the last cycle got at least one reply
probe_loss_ratio{target,group} fraction of packets lost, last cycle
probe_rtt_best/worst/median/mean/stddev_seconds per-cycle RTT summary
probe_rtt_percentile_seconds{percentile} p10/p25/p75/p90 for the smoke band
probe_packets_sent_total / probe_packets_received_total counters
traceroute_hop_rtt_seconds{target,group,ttl} RTT to the router at each hop
traceroute_hop_info{target,ttl,addr} the router address seen at each hop
traceroute_path_length / traceroute_reached path length / reached dest
discovery_selected{target} 1 if the candidate is currently promoted to active probing
discovery_reach_hops{target} / discovery_reached{target} candidate distance / reachability
diagnostic_triggered_total{target,reason} count of latency/loss-triggered diagnostic runs
diagnostic_tcp_connect_seconds{target} / _up TCP handshake time / success from the last run
diagnostic_dns_lookup_seconds{target} / _up DNS resolution time / success from the last run
diagnostic_event_id{target} id of the most recent event (maps annotation ↔ run)
diagnostic_ai_analyzed_total{target} / diagnostic_ai_failed_total{target} AI analyses completed / failed
diagnostic_ai_suppressed_total{reason} events that reused a prior analysis or were throttled (repeat/rate-limited/budget)

UDM exporter (:9431/metrics): udm_up, udm_wan_latency_ms, udm_wan_rx_bytes_per_second, udm_wan_tx_bytes_per_second, udm_wan_drops, udm_speedtest_{download,upload}_mbps, udm_speedtest_ping_ms, udm_gateway_cpu_percent, udm_gateway_memory_percent, udm_gateway_uptime_seconds, udm_clients, udm_config_change_total.

Gateway config awareness & change events

The udm-exporter also reads the gateway's WAN configuration (Smart Queues / SQM, rate limits, WAN type, MTU — with secrets like PPPoE passwords redacted) and uses it two ways:

  • It serves that config at /config, which the AI analysis reads via a udm_config tool. This stops the classic "the AI keeps telling me to enable Smart Queues, but I already did" problem — the agent checks what's actually configured first, and instead reasons about whether the configured shaper rate is set too high for the real line, or whether the cause is elsewhere.
  • It watches that config for changes (every UDM_CONFIG_INTERVAL, default 5m). When a setting changes, it posts an orange config-change annotation to Grafana describing exactly what changed (wan_smartq_enabled: false → true) and bumps udm_config_change_total. Those show up on the timeline and in the "UDM config changes" panel — so you can see whether enabling SQM (or any tweak) actually moved latency, and a change made just before a spike becomes a prime suspect.

This needs the exporter to reach Grafana (it uses GRAFANA_URL / GRAFANA_ADMIN_PASSWORD over the internal network) — already wired in docker-compose.yml. The redacted config is what's sent to the AI; if even that is too much to share, leave ANTHROPIC_API_KEY unset (the change annotations still work without it).

Running without a UDM

The latency probing is fully independent of the UniFi exporter. To run just the probes + dashboard, comment out the udm-exporter service in docker-compose.yml (the UDM panels will simply show "No data"), or leave it — it will log auth failures and report udm_up 0 without affecting anything else.

Troubleshooting

  • All targets show probe_up 0 / "socket: permission denied" in docker compose logs prober → the container didn't get NET_RAW. Confirm the cap_add: [NET_RAW] block is present and your Docker host/policy allows it. As a fallback you can set privileged: false in targets.yml and set net.ipv4.ping_group_range="0 2147483647" on the host.
  • udm_up 0 → check docker compose logs udm-exporter. Usual causes: wrong UDM_URL, a cloud (SSO) account instead of a local one, or a wrong password/role.
  • Gateway target times out but the internet works → your gateway may rate- limit or drop ICMP to itself; point home-gateway at its LAN IP and confirm it answers ping.
  • Dashboard empty for a minute after startup → normal; Prometheus needs a scrape cycle or two before the first points appear.
  • "Active discovered paths" is empty → discovery uses the same raw-ICMP traceroutes as everything else, so it needs NET_RAW (see above). It also only runs its first pass at startup and then every discovery.interval; give it a moment. With no candidates configured it stays dormant by design.

Development

make test     # go test ./...
make vet
make build    # local binaries into ./bin
make up       # docker compose up -d --build

Layout: cmd/prober and cmd/udmexporter are the two binaries (one image, two entrypoints); internal/{config,pinger,tracer,metrics,udm,discovery,diag,aidiag,grafana} hold the logic; docker/ holds Prometheus + Grafana provisioning and the dashboard JSON.

License

MIT © 2026 Adam Fletcher.