Install Whyfire
One Ubuntu server runs the hub; each server you watch gets one command. About 30 minutes from a fresh VM to your first investigated incident.
Early access. We send you the install package: join the waitlist or email hello@whyfire.io. If anything here doesn't match what you see, tell us.
What you'll have
- The hub on your own server, with HTTPS and a sign-in
- Your servers' metrics and logs, with starter alerts
- One card per incident in Teams or Slack: where it started and, with your AI key, why
- Free for up to 10 servers
Already run Prometheus? Steps 1–3, then 5. Starting from nothing? Steps 1–4. For real use, add 6–10: AI, tickets, your own domain, a licence, backups.
An incident from the live demo →
How it fits together
- Prometheus metrics and alert rules
- Loki logs
- Alertmanager grouping and silences
- Investigator the investigation and cards
- Web screens over HTTPS
Servers fetch the agent from the hub (Grafana's release, checksum checked), so they need no internet, and only ever connect out to the hub. The hub contacts only what you set up (chat, AI, tickets, Let's Encrypt), plus Docker Hub, GitHub and npm when you install or upgrade. What leaves your network.
01Requirements
The hub
- Ubuntu 22.04, 24.04 or 26.04, 64-bit, root access.
- 2 vCPU, 4 GB memory, 40 GB disk to start. Disk grows with servers and logs (30 days kept).
- Docker and Docker Compose: installed for you if missing.
Network
| Port | From | To | For |
|---|---|---|---|
| 443, 80 | your browser | hub | the screens (80 redirects) |
| 443 | watched servers | hub | metrics and logs |
| 8088 | watched servers | hub | installing the agent (checked by its checksum) |
| 514 | servers without the agent | hub | syslog (optional, off by default — see below) |
| ping, your ports | hub | servers without the agent, websites | checks (optional) |
No port to open on your servers.
Run the hub on a network you trust — your servers reach it on 443 and 8088, and they share one push key, so treat any machine that can reach the hub as able to send it data. Firewall the hub to your servers.
Watched servers
- Linux with systemd, x86-64 or ARM64, with
curlandpython3(on every Ubuntu). Tested on Ubuntu 24.04 and 26.04. - About 550 MB disk and 50 MB memory for the agent (
topshows ~230 MB, mostly the program file, which the kernel can drop). - Time sync on (it is by default): Whyfire orders changes by time, and warns (ServerClockOff) when a server is over 30 s off.
02Install the hub
In the folder with the package we sent you:
sudo apt install ./whyfire_*_all.debIt sets up Whyfire under /opt/whyfire, starts it, and prints the screens' address, where the admin password is, and the command for adding servers. Without the .deb:
tar -xzf whyfire-*.tar.gz
sudo bash whyfire-*/installer/install.shCheck it: sudo whyfire status
03Sign in
Open https://<your-server> (accept the certificate warning, or use your own domain). User admin; the password is on the hub:
sudo grep WHYFIRE_ADMIN_PASSWORD /opt/whyfire/hub/.envChange it under your name, top right. Add people on Settings → Users: admins change things, viewers see incidents and vote on causes.
Most of what follows is on Settings in the app; its Overview shows what's left to set up. Locked out? sudo whyfire user set admin

04Add your servers
Use the Whyfire agent (below), or read your existing Prometheus instead. A server counts once on your licence either way.
The Whyfire agent
On the hub, print the command:
sudo whyfire agent-commandIt prints one line to run on each server. It checks the script's checksum first, and its token works for 24 hours (--hours N for longer).
It installs the agent, enrols the server, and finishes once the hub has its data ("Done: the hub has 1825 samples and 331 log lines"). No "Done"? See if an install fails. To update, print the command again and run it. A server that stops sending raises HostDown within about three minutes. Retire one with sudo whyfire remove-server <name>.
It also looks for software it knows and watches it too, nothing to configure:
- PostgreSQL: connections by application and user, open transactions. It adds a read-only role (
whyfire-agent, withpg_monitor) that logs in through the local socket, so no password is created. Alerts: PostgresConnectionsNearLimit, PostgresNotAnswering, PostgresIdleTransactionLong; when the database runs out, the investigation names the application holding the connections. - Redis without a password: RedisNotAnswering, RedisRejectingConnections, RedisMemoryNearMax.
- nginx and Apache: it tells you about
--web-logsrather than turning it on.
--no-postgres or --no-redis leaves one out. Installed something since? Print the command again and run it.
Can't run Alloy? sudo whyfire agent-command --classic gives the classic agent (node_exporter, read by the hub on 9100; logs to 514/tcp).
Servers without the agent
Old Linux, appliances, Windows, network kit: the hub pings them and checks their ports.
sudo whyfire add-server old-crm 10.0.4.20 22 443You get ServerNotAnswering or PortNotAnswering. For their logs, add *.* @<hub> to their syslog config, and open the hub's syslog port to them: set WHYFIRE_SYSLOG_BIND in /opt/whyfire/hub/.env to the hub's LAN address (it is 127.0.0.1 by default, so off), then sudo whyfire restart. Firewall port 514 to those servers.
Websites and certificates
sudo whyfire add-site https://shop.example.com/
sudo whyfire add-site https://portal.example.com/login --loginChecked every 30 seconds: WebsiteDown, and CertificateExpiresSoon 14 days ahead. --login for pages where "401 sign in" is healthy. If most sites fail at once you get one ProbesFailingEverywhere about the hub's own connection instead. Websites are free. sudo whyfire checks lists everything; sudo whyfire remove-site <url> removes one.
Web server error rate (optional)
Add --web-logs to the agent command on web servers for WebErrorRateHigh (over 5% server errors). The agent then also reads the nginx and Apache access logs, shortening visitors' addresses on the server. It sends every request, so it's off unless asked for. Run the command again without it to stop.
Busy site? Send only the failures from nginx instead (map $status $failed { ~^5 1; default 0; } and access_log syslog:server=unix:/dev/log combined if=$failed;): the alert then fires on 10 server errors in 5 minutes.
05Already run Prometheus and Alertmanager?
Use them directly
Your rules and Alertmanager stay as they are: your Alertmanager sends Whyfire the alerts, and Whyfire investigates them from your Prometheus, read-only.
sudo whyfire connect --prometheus http://prometheus.internal:9090 \
--node-job node_exporter --host-label instance--node-job: your node_exporter job (a wrong one lists the jobs found).--host-label: the label naming a server (instanceworks).- Loki:
--loki http://loki.internal:3100 --log-selector 'job="varlogs"' --log-host-label host - Alertmanager:
--alertmanager http://alertmanager.internal:9093puts Whyfire's silences in yours (otherwise they go in the hub's). - Grafana:
--grafana https://grafana.example.comgives each change on an incident, and each chart on a server page, an Open in Grafana link: Explore at that time, with the same query (--grafana-datasource <uid>if this Prometheus is not its default data source). - Behind a login:
--prometheus-auth user:passwordor a token (same for--loki-authand--alertmanager-auth). - Your alerts that report what visitors got (a 5xx rate, a website check of your own): add the label
whyfire_role: symptom. Whyfire then looks behind the server that raised it, as it does for its own website checks.
It prints what to add to your Alertmanager: a receiver, a route to it at the top of your routes (with continue: true), and your default receiver as the last route. That last line matters: Alertmanager uses the default receiver only when no route matches, and Whyfire's route always matches, so without it alerts that went to your default receiver would stop reaching it. Same thing in the app: Settings → Connect monitoring. Undo: sudo whyfire connect --off
Or copy it into the hub
For Whyfire's own alert rules too, without agents, the hub copies your node metrics every 30 seconds:
sudo whyfire federate http://prometheus.internal:9090 \
--node-job node_exporter --host-label instanceUndo: sudo whyfire federate --off. Either way the hub must reach your Prometheus (and your Alertmanager the hub, on 443).
06Cards in Teams or Slack
Settings → Where cards go: pick the chat, paste the webhook address, Save and test (a test card goes first). Prefer files? The same settings are in /opt/whyfire/hub/.env.
| Chat | The address |
|---|---|
| Teams | Channel → Workflows → "Post to a channel when a webhook request is received" |
| Slack | An app with an Incoming Webhook |
| Other | Any URL that takes a JSON POST |
Noisy alert? Mute it on its incident page: still investigated, no more cards. Each card asks whether the origin was right; the answers make the score on the Incidents screen.
07AI investigation (optional)
Without a key, the statistics still find where trouble started. With your Anthropic API key, Claude investigates each incident (read-only queries on your metrics and logs) and writes the cause, evidence and next step.
Settings → AI and spending: paste the key, Save and test, pick the model. Set a daily limit (100 by default) and a monthly budget; each incident shows what its write-up cost.
08Silences follow tickets (optional)
Press Silence… on an incident and give a ticket (OPS-123): the silence lasts while the ticket is open and lifts when it closes. Connect the system on Settings → Ticket system (read-only):
| System | Needs |
|---|---|
| Jira Cloud | site URL, your email, an API token |
| GitHub Issues | owner/repo, a read-only token |
| Azure DevOps | https://dev.azure.com/org/project, a PAT with Work items: read |
09Your own domain
Point a DNS name at the hub (ports 80 and 443 reachable from the internet), then:
sudo whyfire domain whyfire.example.com --email you@example.comThe hub gets and renews a Let's Encrypt certificate; agents keep working. --internal goes back.
10Licence
Up to 10 servers free. For more, a licence key (pricing); it works offline: paste it on Settings → Licence, or copy it to /opt/whyfire/hub/licence/licence.key.
Over the limit, new servers can't be enrolled, and servers past it (from your own Prometheus, say) still get their alerts, without the investigation. Nothing already watched is dropped. Websites are free.
11Running it
| Command | What it does |
|---|---|
sudo whyfire status | services, servers, licence, anything not answering |
sudo whyfire logs [service] | recent logs |
sudo whyfire backup | settings, servers, incidents and silences to /var/backups/whyfire (contains secrets) |
sudo whyfire upgrade <release> | backs up, then upgrades, keeping your data |
sudo whyfire support-bundle | diagnostics for us, secrets removed |
If an install fails
| The agent says | Do this |
|---|---|
| curl: Failed to connect | the server can't reach the hub on 8088 |
| the hub refused the token, or … has expired | commands work for 24 hours: print a new one |
| sha256sum: … FAILED | the hub was upgraded since, or the script was changed on the way: print a new command |
| the hub's CA in the answer is not the one… | print a new command; if it repeats, something is altering traffic between the server and the hub |
| refused to enrol … (HTTP 402) | the licence is full |
| not enough free space | it needs about 900 MB free in /var/tmp and /usr/local/lib while installing (550 MB after) |
| the hub has no Alloy build yet | on the hub: sudo whyfire alloy-setup |
| NOT delivering yet | usually 443 from the server to the hub is blocked; journalctl -u whyfire-agent -n 30 says why |
| PostgreSQL … could not log in through the socket | local logins need peer authentication (Ubuntu's default): a local all all peer line in pg_hba.conf, then reload PostgreSQL and run the command again |
| WARNING: this server's clock is off | turn time sync on (timedatectl) on both; a server ahead of the hub can show as HostDown |
Still stuck? Send us sudo whyfire support-bundle.
Uninstall
On a server: sudo systemctl disable --now whyfire-agent, then remove /usr/local/lib/whyfire-agent, /etc/whyfire-agent and /var/lib/whyfire-agent.
On the hub, sudo apt remove whyfire stops it and keeps its data. To delete everything (metrics, logs, incidents, settings):
sudo bash -c 'cd /opt/whyfire/hub && docker compose --env-file .env down -v'
sudo apt purge whyfire
sudo rm -rf /opt/whyfire /usr/local/bin/whyfireBackups stay in /var/backups/whyfire until you remove that too.
Built on Prometheus, Alertmanager, Loki, Grafana Alloy and other open-source software: versions and licences in /usr/share/doc/whyfire/THIRD-PARTY-NOTICES.md.