Whyfire Early access

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.

The incident screen: the cause from the AI investigation, cache-01 with Redis stopped, the statistics agreeing underneath, and the chart of what they saw there.An incident from the live demo →

How it fits together

Your servers The agent Grafana Alloy: metrics and logs, sent to the hub over HTTPS. One command per server.
The hub One Ubuntu server or VM
  • Prometheus metrics and alert rules
  • Loki logs
  • Alertmanager grouping and silences
  • Investigator the investigation and cards
  • Web screens over HTTPS
Teams, Slack or a webhookthe incident cards
Anthropic APIoptional: the AI investigation, with your key
Jira, GitHub or Azure DevOpsoptional, read-only: silences follow tickets

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

PortFromToFor
443, 80your browserhubthe screens (80 redirects)
443watched servershubmetrics and logs
8088watched servershubinstalling the agent (checked by its checksum)
514servers without the agenthubsyslog (optional, off by default — see below)
ping, your portshubservers without the agent, websiteschecks (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 curl and python3 (on every Ubuntu). Tested on Ubuntu 24.04 and 26.04.
  • About 550 MB disk and 50 MB memory for the agent (top shows ~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.deb

It 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.sh

Check 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/.env

Change 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

Settings, Overview: one line per thing to set up, each marked done, to do or optional. Here the cards go to Teams and the AI write-up is still off.
Settings → Overview on a hub part-way through this guide (example names).

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-command

It 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, with pg_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-logs rather 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 443

You 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 --login

Checked 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 (instance works).
  • Loki: --loki http://loki.internal:3100 --log-selector 'job="varlogs"' --log-host-label host
  • Alertmanager: --alertmanager http://alertmanager.internal:9093 puts Whyfire's silences in yours (otherwise they go in the hub's).
  • Grafana: --grafana https://grafana.example.com gives 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:password or a token (same for --loki-auth and --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 instance

Undo: 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.

ChatThe address
TeamsChannel → Workflows → "Post to a channel when a webhook request is received"
SlackAn app with an Incoming Webhook
OtherAny 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):

SystemNeeds
Jira Cloudsite URL, your email, an API token
GitHub Issuesowner/repo, a read-only token
Azure DevOpshttps://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.com

The 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

CommandWhat it does
sudo whyfire statusservices, servers, licence, anything not answering
sudo whyfire logs [service]recent logs
sudo whyfire backupsettings, servers, incidents and silences to /var/backups/whyfire (contains secrets)
sudo whyfire upgrade <release>backs up, then upgrades, keeping your data
sudo whyfire support-bundlediagnostics for us, secrets removed

If an install fails

The agent saysDo this
curl: Failed to connectthe server can't reach the hub on 8088
the hub refused the token, or … has expiredcommands work for 24 hours: print a new one
sha256sum: … FAILEDthe 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 spaceit needs about 900 MB free in /var/tmp and /usr/local/lib while installing (550 MB after)
the hub has no Alloy build yeton the hub: sudo whyfire alloy-setup
NOT delivering yetusually 443 from the server to the hub is blocked; journalctl -u whyfire-agent -n 30 says why
PostgreSQL … could not log in through the socketlocal 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 offturn 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/whyfire

Backups 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.