Skip to content

What Gatus Is

Something you run has stopped working — a web page, an API, a small service on a home server — and you find out the way you always find out: somebody tells you, hours later, or you notice yourself by accident. Gatus is the program that notices for you. You give it a list of endpoints — addresses worth watching — and the rules each one must satisfy to count as healthy. Gatus visits every endpoint on a schedule you choose, tests the reply against your rules, remembers the result, shows the whole list on a dashboard web page, and sends an alert when one of them fails often enough in a row to matter.

This chapter gives you the mental model: what goes in, what comes out, and where Gatus sits among the other tools that watch things.

The whole idea in one config file

Everything Gatus knows lives in one YAML file. Here is a complete, working configuration — the one this guide's lab runs, pointed at a small web server on the same machine:

endpoints:
  - name: front-page
    group: lab
    url: "http://127.0.0.1:8734/"
    interval: 10s
    conditions:
      - "[STATUS] == 200"
      - "[BODY] == pat(*lab web page is up*)"

Read it as a sentence: every ten seconds, fetch this page; it counts as up only if the status is 200 and the body contains the words "lab web page is up". The rules in the conditions list are the heart of the tool — chapter 5 takes them apart. Everything else in Gatus exists to serve them: the schedule, the storage, the dashboard, the alerts.

What comes out

Three things. First, a dashboard: a web page listing every endpoint, green or red, with its recent history — uptime percentages, response times, and the last hundred checks as a strip of coloured blocks. You read it in a browser; chapter 7 walks it.

Second, an API: the same facts as JSON, at /api/v1/endpoints/statuses, so other programs can read what Gatus knows. The check for this chapter: once Gatus is running (chapter 3 — the lab puts it on port 8085, for a reason given there), ask the API from the command line —

curl -s http://127.0.0.1:8085/api/v1/endpoints/statuses

— and you get the endpoints, their conditions, and their recent results as machine-readable text. Chapter 7 shows real output from the lab.

Third, alerts: messages sent to somewhere you already look — email, Slack, a chat channel, a generic webhook to a URL of your choosing — when an endpoint crosses a failure threshold you set. Chapter 6 covers them, including the lab's capture of a real alert payload, caught by a tiny listening server built for the purpose.

What it watches

An endpoint is usually an HTTP or HTTPS address, and most of this guide is about those. The same config file can also watch a raw TCP port ("did anything answer?"), an ICMP ping, a DNS lookup, a TLS certificate's expiry date, or an SSH login. The rule list changes with the kind — a ping has no status code — but the shape never does: visit, compare, record, report. Chapter 5 keeps to the checks the lab ran for real and says plainly which kinds it could not.

What Gatus is not

Gatus is not a metrics system. It does not collect hundreds of numbers from inside your machines — CPU, memory, disk, per-process detail. That is a different job, done by tools like Prometheus and Beszel (chapter 10). Gatus stands outside your services and asks the question a visitor would ask: are you there, and are you answering properly? It is not a log collector, not a tracer, and not an incident manager — it can hand an alert to one (PagerDuty is among its providers) but the scheduling of humans is that tool's job. And it is not a replacement for fixing the thing that keeps going down; it shortens the time between "it broke" and "someone knows", which is a smaller and very useful promise.

Who it is for

The home-lab keeper with a handful of services on a small server, who wants one page that says whether they are all alive. The small team whose website and API are their livelihood, and who need the 3 a.m. failure to arrive as a message, not a customer complaint. The maker with a Raspberry Pi whose gadgets phone home to an endpoint that must stay up. The common thread is a short list of things that matter, checked from the outside, on one modest machine — Gatus itself is a single program file with a single config file, and it asks for little more than a corner of a machine that is already on.

The honest catch, up front

Gatus sees only what it checks, from where it sits. If Gatus runs on the same machine as everything it watches, a dead machine takes the watcher down with it, silently — the classic limit of every self-hosted monitor, and chapter 11 states it plainly. Its checks are also only as honest as the conditions you write: a page that returns status 200 with an error message in the body passes a status-only check, which is why this guide teaches body conditions early (chapter 5) instead of treating them as an advanced topic.