Docs / Guides
Monitors
A monitor watches one thing: a URL, a port, a certificate, a cron job. Probes run the checks, the monitor turns their results into a state (up, degraded, down or unknown), and the components it's linked to follow that state on the status page.
# Add a monitor
Monitors → Add monitor, then pick what yasp should watch:
| Tile | Kind | What it does |
|---|---|---|
| Website or API | http | Requests a URL and checks the answer |
| Server port | tcp | Opens a TCP connection |
| SSL certificate | tls | Completes a TLS handshake and warns before expiry |
| DNS record | dns | Resolves a name and compares the answer |
| Ping | icmp | Sends ICMP echo requests |
| Third-party service | statuspage | Reads another company's status page |
| Domain expiry | domain | Reads the domain's registration record |
| Database | database | Postgres, MySQL or Redis accepting connections |
| Mail server | smtp | SMTP greeting, EHLO, STARTTLS and certificate |
| Process | process | Something keeps running on a probe's host |
| Scheduled job | heartbeat | Your cron job pings yasp |
| Alerts from your monitoring | alerts | Prometheus, Grafana, Datadog and others push alerts; see alerts.md |
Give it a Name (only you see it; the status page shows component names), fill in the fields for its kind, and choose where it goes On the status page:
- Show as a new component with this name (the default),
- Part of "…" an existing component, or
- Don't show it (internal monitor).
Before you save, Try it from a probe and click Test now to run the check once and see what it sees. Then Start monitoring. probes.md explains testing in detail.
# Kinds and their options
Every check passes or fails per run. A passing run can still be degraded: slower than Slow above, or inside a certificate or domain warning window.
# Website or API
- URL to check: an
http://orhttps://URL. Don't put credentials in it; use a secret header. - Under Advanced options: Method (GET, HEAD, POST, PUT, PATCH, DELETE, OPTIONS),
Accepted status codes, Response must contain, Request headers (one
Name: valueper line), and one Secret header whose value is encrypted at rest and never shown again. - Accepted status codes takes codes, ranges and classes:
200-299,301,4xx. The default is200-399. Redirects are followed (up to 10). - Response must contain is checked against the first 64 KiB of the body.
- Warn before the certificate expires: for
https://URLs, the monitor is degraded this many days before the certificate expires. Default 14; 0 turns the warning off. The expiry date is shown on the monitor's page either way.
# Server port
Host and Port. If the connection opens, it's up.
# SSL certificate
Host, Port (default 443), and Warn when it expires within 7, 14 (default), 21, 30 or 60 days. Under Advanced options, Server name to send sets SNI when it differs from the host. A verified handshake is up; inside the warning window it's degraded; an expired or untrusted certificate is down.
# DNS record
Domain name, Record (A, AAAA, CNAME, MX, NS, TXT, CAA, SRV, SOA) and an optional Expected answer, one value per line. Every expected value must be in the answer. Leave it empty to accept any non-empty answer.
# Ping
Host, and Pings per check (1 to 10, default 3) under Advanced options. Any reply is up; lost packets make it degraded; no replies at all is down. The probe needs a ping socket; the monitor's page says so if none of its probes has one.
# Third-party service
Pick a Service from the list (GitHub, Stripe, AWS, Cloudflare, OpenAI and about forty more), or enter its Status page address. yasp reads:
- any page built on Atlassian Statuspage or status.io (yasp pages included),
- the AWS Health Dashboard, Google Cloud Service Health, Azure status, Slack and Stripe.
A minor problem or maintenance makes the monitor degraded; a major outage makes it down.
Only this component follows one of the service's components by name. Only this
region narrows AWS (us-east-1), Google Cloud (europe-west2) and Azure (West Europe).
The big clouds nearly always have an issue somewhere, so without a service or region they
report degraded at most. The default interval is 5 minutes.
# Domain expiry
Domain and Warn when it expires within 14, 30 (default), 60 or 90 days. yasp reads the registry's record over RDAP, or WHOIS where a registry has no RDAP. Inside the warning window it's degraded; expired is down. A subdomain is checked at its registered domain. A registry that publishes no expiry date makes the run inconclusive rather than down. Check every 1 hour, 6 hours (default), 12 hours or 1 day: registries rate-limit lookups.
# Database
Database (PostgreSQL, MySQL or MariaDB, Redis or Valkey), Host and Port (default
5432, 3306 or 6379). No credentials are needed: yasp uses each database's opening exchange,
like pg_isready, so "accepting connections" is told apart from "port open". Too many
connections, or a server still starting, is down.
# Mail server
Mail server, Port (default 587) and Encryption: STARTTLS (ports 25 and 587, the
default), TLS from the start (port 465), or None. yasp waits for the greeting, says EHLO,
and with encryption completes a verified TLS handshake. No mail is sent. Warn when the
certificate expires within works as for SSL certificates.
# Process
Process name, optionally Match anywhere in the command line (for gunicorn app:server or node server.js), At least (default 1) and At most. The check runs
on the probe's own machine, so install a probe there. Linux and macOS; a probe in Docker
needs pid: host.
# DNS server
HTTP, port, SSL certificate, ping, database and mail monitors have a DNS server field
under Advanced options: an IP, optionally with a port (10.0.0.2:53), used instead of the
probe's system resolver. DNS record monitors use it as the server to ask. See
probes.md for when you need it.
# Schedule, retries and thresholds
Check every sets the interval: 10 seconds to 1 hour in the picker, 10 seconds to 1 day through the API. The rest is under Advanced options:
| Field | Default | Limits | Meaning |
|---|---|---|---|
| Timeout | 10000 ms | up to 60000, shorter than the interval | One attempt's time limit |
| Slow above | off | below the timeout | A passing run slower than this is degraded |
| Retries per check | 1 | 0 to 5 | Extra attempts after a failure, 5 s apart |
| Down after | 2 | 1 to 20 | Failed runs in a row before the monitor goes down |
| Up after | 2 | 1 to 20 | Passing runs in a row before it recovers |
| Probes that must agree | majority | See below |
A run is down only if every attempt fails, and the first success ends it. The response time recorded is the last attempt's, so retry waits never show up as slowness. Going from up to degraded takes three degraded runs in a row.
Active pauses and resumes a monitor. Paused monitors don't run and don't affect the status page.
# Where it runs
With more than one probe, the form has Run from; otherwise the built-in probe, This server, runs it. After saving, change the probes under Runs on on the monitor's page and Save probes. A probe that can't run the check (too old, or no ping socket) is marked there. Hosts on a private network need a probe inside it: see probes.md.
# Flap damping and agreement
A single failed run doesn't take a monitor down. Each probe's results are damped by Down after and Up after, and then the probes vote:
- Most of them (majority), the default: more than half the reporting probes.
- Any one probe.
- All of them.
- At least 2 or At least 3. With fewer probes reporting than that, the monitor keeps its last state instead of trusting fewer probes.
With probes in several regions, one region's network trouble then can't mark you down. A probe whose own network is broken (it can't reach well-known hosts either) reports the run as inconclusive, not down. When the probes disagree, the monitor list and page say so, e.g. "1 of 3 probes report down: Singapore". The details are in how-it-works.md.
# Heartbeats for cron jobs
A Scheduled job monitor is the other way round: your job tells yasp it ran.
-
Choose Your job pings at least every: 1 minute up to 1 week.
-
Save. The monitor's page shows the Ping URL:
https://status.example.com/hb/hb_…. -
Call it when the job succeeds:
0 3 * * * /usr/local/bin/backup && curl -fsS -m 10 --retry 3 https://status.example.com/hb/hb_…Call
…/failinstead to report a failure right away:/usr/local/bin/backup || curl -fsS -m 10 https://status.example.com/hb/hb_…/fail
GET, POST and HEAD all work. If no ping arrives within the period plus the Grace period
(Advanced options, default 60 s), the monitor goes down. A single missed window or /fail
is enough, and the next ping brings it back up: Down after and Up after default to 1.
After yasp restarts, nothing counts as missed until one full period has passed. At most one
ping per second is accepted. If the URL leaks, click New URL; the old one stops working.
# How a monitor affects its component
A component's status comes from its monitors unless a manual status, an incident or maintenance says otherwise. Each monitor maps to:
| Monitor | Component |
|---|---|
| Up, or no data | Operational |
| Degraded | Degraded performance |
| Down | Major outage, or Partial outage if down means partial outage is ticked |
Tick down means partial outage next to the monitor on the component's page (under Components). The component's Combine monitors setting decides how several monitors add up:
- Worst monitor decides (the default),
- Best monitor decides (replicas): one healthy replica is enough,
- Redundant: some down is a partial outage, and all down is a major outage.
When no linked monitor is reporting, the component keeps its last known status and its page says so. An outage can open an incident by itself; see incidents.md.
# The monitor's page
Open a monitor from Monitors to see:
- its state and for how long, uptime, the median, p95 and p99 response times of passing checks, and how many checks failed, over the last 1h, 24h (default), 7d or 30d;
- the certificate or domain expiry date, highlighted inside the warning window;
- the Response time chart: each bar shows the median and the median-to-p95 range, and is marked passed, slow or failed. Hover a bar for its checks, failures and percentiles;
- with probes in several regions, a filter for one region and a table per probe;
- Runs on, Test now, Alerts go to and escalation (see notifications.md);
- Recent results, with each probe's outcome, duration and error.
Edit changes everything except where it shows on the status page; link it to other components from their pages instead.