Pingraph
Network Latency & Uptime Monitoring for Self-Hosted Environments
Pingraph is a modern, self-hosted monitoring tool that tracks network performance and service health. Built for network engineers and IT teams who need a lightweight, web-based alternative to legacy tools like SmokePing.
Monitor latency trends, packet loss, and service availability in real-time with beautiful dashboards and public status pages.
Features
Multi-Protocol Monitoring
- ICMP (Ping) — Classic latency and packet loss monitoring
- HTTP — Web service checks: expected status, keyword (or keyword must be absent), redirects, any method with headers, body and basic auth, configurable timeout, and certificate expiry warnings
- TCP — Port availability and connectivity checks
- DNS — Resolve a name (A, AAAA, CNAME, MX, NS or TXT) through your own resolver or the system's, optionally checking the answer
- Push — Cron jobs, backups and scripts call a URL when they run; the host goes down when the calls stop (same URL format as Uptime Kuma)
- Docker — Container is running and healthy, through the Docker socket or a socket proxy
- Redis —
PING with optional password (also Valkey and KeyDB)
Dashboards & Visualization
- Live Dashboard — Real-time host status with color-coded health indicators (up/degraded/down)
- Latency Charts — SmokePing-style visualization with min/avg/max trends over time
- Public Status Pages — Share service status with users without requiring login
- Speed Tests — On-demand throughput tests using iperf3
Monitoring & Alerts
- Notifications — Slack, email, Telegram, ntfy and webhook alerts on status changes (Down, Degraded, and recovery), with per-host control and a built-in "Send test notification" button
- Configurable Thresholds — Set latency thresholds for degraded state (default: 350ms)
- Health Status Tracking — Automatic status transitions (up → degraded → down)
- Historical Data — 90-day retention with configurable cleanup (30/60/90 days)
- Grouped Organization — Organize hosts by service, location, or team
Accounts
- Several users — Add and remove people from the Users page; new users get a temporary password
- Two-factor authentication — Codes from any authenticator app, with one-time recovery codes
Use Cases
- Uptime Monitoring — Track availability of critical services and infrastructure
- Latency Analysis — Monitor network performance to identify congestion or issues
- Service Health — Check web services, APIs, and TCP ports from your network
- Performance Trending — Long-term latency trend analysis with 90-day historical data
- Team Communication — Public status pages to share uptime metrics with stakeholders
Quick Start
Requirements
- Docker & Docker Compose (recommended) or standalone server
- Linux, macOS, or Windows (WSL2)
Docker (Simplest)
docker run -d \
--name pingraph \
-p 3000:80 \
--cap-add=NET_RAW \
-e SOLID_QUEUE_IN_PUMA=true \
-v pingraph_storage:/rails/storage \
ghcr.io/vdw/pingraph:latest
Open http://localhost:3000 and sign in with:
- Email:
admin@pingraph.local
- Password:
pingraph123
You'll be asked to choose a new password straight away. To skip the default, set
PINGRAPH_ADMIN_EMAIL and PINGRAPH_ADMIN_PASSWORD on the first start instead.
No master key is needed: the session secret and the encryption key are generated on first boot
and kept in the pingraph_storage volume, next to the database. Keep that volume persistent.
Manual Setup (Development)
git clone https://github.com/vdw/pingraph.git
cd pingraph
bundle install
bin/rails db:prepare db:seed
bin/dev
Then open http://localhost:3000
Configuration
Environment Variables
| Variable |
Default |
Purpose |
SECRET_KEY_BASE |
auto-generated |
Optional. Signs session cookies. If unset, one is generated on first boot and stored in storage/secret_key_base. |
PINGRAPH_ADMIN_EMAIL / PINGRAPH_ADMIN_PASSWORD |
admin@pingraph.local / pingraph123 |
Optional. The first admin account, created on first boot only. Without a password set here, the default must be changed at first sign-in. |
TIME_ZONE |
UTC |
Set dashboard timezone (e.g., Eastern Time (US & Canada), Europe/London, Asia/Tokyo) |
SOLID_QUEUE_IN_PUMA=true |
— |
For single-container deployments (runs scheduler + worker together) |
JOB_THREADS |
5 |
Threads for the probe worker. Probes mostly wait on the network, so raise this if you monitor many hosts (see Capacity under How It Works). Alerts always have their own worker. |
APP_HOST |
localhost |
Host used in email links when no Base URL is set in Settings |
MAILER_FROM |
pingraph@localhost |
Sender address for emails when no From address is set in Settings |
ACTIVE_RECORD_ENCRYPTION_* |
auto-generated |
Optional. Supply your own keys for encrypting notification secrets (PRIMARY_KEY, DETERMINISTIC_KEY, KEY_DERIVATION_SALT). If unset, a key is generated and stored in storage/. |
First Steps After Login
- Create Groups — Organize hosts by service or location (e.g., "Web Servers", "Database Servers")
- Add Hosts — Monitor services:
- Ping a host:
1.1.1.1 (ICMP)
- Check a website:
https://example.com (HTTP)
- Monitor a port: address
192.168.1.10, port 443 (TCP)
- Check your Pi-hole answers: name
nas.lan, DNS server 192.168.1.2, expected value 192.168.1.10 (DNS)
- Know your backup ran: a Push host, then call its URL at the end of the backup script (Push)
- Watch a container:
nextcloud (Docker; see Docker checks)
- Set Thresholds — Adjust latency thresholds (default 350ms) to match your needs
- Create Status Pages — Enable public status page for each group to share with users
- Set Up Notifications — Add a Telegram bot, ntfy topic, Slack webhook, SMTP details or your own webhook in Settings so you're alerted when a host goes down (see Notifications)
Notifications
Get alerted the moment something breaks — no need to watch the dashboard. Configure channels in Settings → Notifications:
- Base URL — the address you use to reach Pingraph (e.g.
https://pingraph.mylan.home or http://192.168.1.50:3000). Used to build the "View host" link inside each alert.
- Slack — paste an Incoming Webhook URL.
- Email — enter SMTP server details, credentials, and a recipient address.
- Telegram — create a bot with @BotFather and paste its token. Send the bot a message, open
https://api.telegram.org/bot<token>/getUpdates and copy chat.id as the Chat ID. To alert a group, add the bot to it (group IDs start with -).
- ntfy — enter your server and topic, e.g.
https://ntfy.sh/my-pingraph-alerts, and subscribe to the same topic in the ntfy app. Down alerts are sent at high priority. On the public ntfy.sh server anyone who knows a topic can read it, so use a long, hard-to-guess name, or your own server with an access token.
- Webhook — any URL that accepts a JSON POST: Home Assistant, n8n, Node-RED or your own script (see below).
Any combination of channels can be active at the same time. Click Send test notification to confirm your setup.
Webhook body. Each alert is POSTed with Content-Type: application/json:
{
"event": "down",
"status": "down",
"text": "Router is DOWN",
"host": { "id": 12, "name": "Router", "group": "LAN", "url": "https://pingraph.mylan.home/hosts/12" },
"error_message": "100% packet loss",
"packet_loss": 100,
"latency_ms": null,
"status_code": null,
"occurred_at": "2026-10-24T12:00:00Z",
"certificate_expires_at": null
}
event is down, degraded, recovery or cert_expiring; status is the new state (down, degraded or up), or the current one for cert_expiring, which also sets certificate_expires_at. Fields that don't apply to the check are null. Any 2xx response counts as delivered.
Delivery is retried. Each alert is sent to each channel separately. If a channel fails, that channel is retried up to 5 times over about 6 minutes, without re-sending to channels that already worked. Every alert and its result is listed in the Notification log (linked from Settings). If an alert still can't be delivered, a red banner appears on every page until a later one succeeds, and you can retry it from the log.
When alerts fire: only on status changes, so a host that stays down produces one alert, not one per probe cycle.
- Down and recovery (back to Up) alerts are always sent.
- Degraded alerts are opt-in — enable Also alert on Degraded on a host.
Toggle alerting per host with Send notifications for this host on the host's edit page (on by default once a channel is configured).
Security: webhook URLs, ntfy topics and tokens, the Telegram bot token, SMTP passwords, and HTTP check headers, bodies and basic auth passwords are encrypted at rest. The encryption key is generated automatically on first boot and stored in storage/ — keep that volume persistent (it already holds your database). To manage keys yourself, set the ACTIVE_RECORD_ENCRYPTION_* environment variables instead.
Users and Two-Factor Authentication
Users: The Users page lists everyone who can sign in. Add user creates an account with a temporary password, shown once, which they replace at their first sign-in. Every user can change everything, including other users: there are no roles. You can reset another user's password (they're signed out everywhere), turn off their two-factor authentication, or remove them; your own account is changed on the Account page, and the last user can't be removed.
Two-factor authentication: On the Account page, choose Set up, scan the QR code with an authenticator app (2FAS, Aegis, Google Authenticator, 1Password, Bitwarden and others), and confirm with a code and your password. You then get 10 recovery codes: each signs you in once if you lose your phone, so store them somewhere safe. From then on, signing in asks for a code after your password. A code can't be used twice, and both turning two-factor off and replacing the recovery codes need your password. The secret is encrypted at rest like the notification secrets.
How It Works
Polling: Every minute, Pingraph schedules each host's checks for the coming minute on exact slots, so a host set to 30 seconds is checked every 30 seconds (minimum 10 seconds). If the queue falls behind, late checks are skipped rather than piling up.
HTTP checks: A check passes when the final response (after following up to 10 redirects; set 0 to check the redirect itself) has the expected status and, if set, contains the keyword (or doesn't, when inverted). The keyword is case-sensitive and matched against the first 1 MB of the body. Custom headers and basic auth are sent only to the monitored URL's host, never to a host a redirect points to. The timeout (default 5 seconds) applies to connecting and to each read, and also to TCP checks. Hosts created before redirects were supported keep not following them until you change it.
DNS checks: The name is resolved through the DNS server you enter (an IP address such as 1.1.1.1 or your Pi-hole), or the resolver of the machine Pingraph runs on when left blank. The check fails when there's no record of the chosen type, or none equals the expected value when one is set (names compare without case or a trailing dot; for MX, enter the mail server's name). The resolve time is charted as latency.
Push checks: Saving a Push host creates a URL like https://pingraph.example.com/api/push/<token>. Call it with GET or POST whenever the job runs, for example curl -fsS -m 10 "<url>" at the end of a script. If no call arrives for one interval (plus 10 seconds), the check fails; with the default Confirm after 2, the host goes Down after two intervals. Add ?status=down&msg=... to report a failure right away, and ping=<ms> to chart a duration. These are Uptime Kuma's push parameters, so existing scripts only need the new URL. The token is the only secret: anyone with the URL can report for that host. New URL on the host page replaces it. The URL uses the Base URL from Settings when set.
Docker checks: See Docker checks for giving Pingraph access. A container passes when it is running, not paused and, if it has a health check, not unhealthy (a health check that is still starting passes). Exited containers fail with their exit code.
Redis checks: Sends PING