Gatus push notifications
Gatus custom alerts can push to your phone or desktop through PushPiper, free for 10,000 messages a month on 10 devices. iPhones on iOS 16.4 or later install it through Safari without buying an app, and setup is a few lines of YAML in your Gatus config.
Why Gatus needs the custom provider
Gatus includes a built-in Pushover provider in its configuration schema, but that integration hardcodes the destination endpoint to Pushover's servers. Because PushPiper uses the exact same API format at /1/messages.json, you might wonder why you cannot just change a hostname setting, but Gatus gives you no way to edit that URL. That leaves alerting.custom.
When you look at PushPiper compared with Pushover, ntfy and Gotify, Pushover charges $4.99 per platform after a 30-day trial. PushPiper gives you 10,000 messages every month on the free plan without asking for payment details.
But there is a catch to watch out for with custom webhooks. Gatus defaults its custom request method to GET rather than POST. If you leave the method property out, Gatus sends a GET request to the messages endpoint, and PushPiper will reject it immediately. You have to set method: "POST" explicitly in your YAML file.
Getting your PushPiper keys
Getting ready takes two minutes.
- Sign up at Open PushPiper and sign up free using your Google account.
- Copy your user key (a 30-character string starting with
u). - Create an application for Gatus to generate an app token (a 30-character string starting with
a). - Install the web app on your phone or desktop.
On Android, Windows, macOS, and Linux, you can install the app from Chrome, Edge, Firefox, or Safari. On iPhone or iPad, open Safari, head to pushpiper.com/app, tap Share, and select Add to Home Screen, which installs the web application directly onto your device without going through an app store. Web Push handles delivery across platforms, so you don't have to download anything from an app store. If you run multiple monitors on your network, you can also look into Uptime Kuma push notifications with the same credentials.
Configuring custom alerting in YAML
You configure the integration under the root alerting key in your Gatus config.yaml file.
alerting:
custom:
url: "https://api.pushpiper.com/1/messages.json"
method: "POST"
headers:
Content-Type: "application/json"
body: |
{
"token": "APP_TOKEN",
"user": "USER_KEY",
"title": "[ENDPOINT_NAME]",
"message": "[ALERT_TRIGGERED_OR_RESOLVED]: [ALERT_DESCRIPTION]",
"priority": 1
}
endpoints:
- name: website
url: "https://example.com/health"
interval: 1m
conditions:
- "[STATUS] == 200"
- "[CERTIFICATE_EXPIRATION] > 48h"
alerts:
- type: custom
description: "health check failed"
send-on-resolved: trueYou only need to update two values in the payload:
- Replace
APP_TOKENwith your application token. - Replace
USER_KEYwith your user key or a delivery group key.
Gatus requires you to specify the headers block with Content-Type: "application/json". PushPiper accepts flat JSON payloads where values are strings, numbers, or booleans, but nested arrays or objects get rejected as malformed, so you should keep your payload structure flat. We set priority to 1 so the alert bypasses quiet hours on your devices. Would you rather keep alerts silent during the night? Set priority to 0.
Here is what each Gatus placeholder becomes when it arrives in your alert payload.
| Placeholder | Becomes |
|---|---|
[ENDPOINT_NAME] | The endpoint's name |
[ENDPOINT_GROUP] | Its group |
[ENDPOINT_URL] | Its URL |
[ALERT_DESCRIPTION] | The alert's description |
[ALERT_TRIGGERED_OR_RESOLVED] | TRIGGERED or RESOLVED |
[RESULT_ERRORS] | The check errors, not safe inside JSON |
Setting up recovery alerts and SSL tracking
Gatus endpoints do not send recovery alerts by default. If a service drops offline and then recovers, Gatus stays silent unless you specifically tell it to notify you on resolution.
You fix this by adding send-on-resolved: true to the alert block on each endpoint. When that flag is present, Gatus replaces [ALERT_TRIGGERED_OR_RESOLVED] with TRIGGERED or RESOLVED. Seeing the recovery status at the start of your push notification saves you from checking your status board manually when a degraded service resolves itself while you are away from your desk.
You can also watch TLS certificates by adding expiration conditions to your endpoints. Setting "[CERTIFICATE_EXPIRATION] > 48h" ensures you get an alert two days before an SSL certificate runs out. For more details on certificate checks, see our walkthrough on how to get an alert before your SSL certificate expires.
Keeping JSON payloads valid
Gatus builds custom alert payloads by replacing placeholders directly in your raw text block.
If an endpoint name contains double quotes, Gatus drops them right into your JSON string without escaping. That breaks the syntax, and PushPiper rejects the request with an HTTP 400 error.
The [RESULT_ERRORS] variable causes even worse problems. Connection failures and check errors routinely include quotation marks, brackets, and newlines. Because Gatus does not escape strings before substitution, using [RESULT_ERRORS] inside JSON breaks the payload structure whenever an error contains quotes, and PushPiper rejects the malformed request. Stick to [ALERT_TRIGGERED_OR_RESOLVED]: [ALERT_DESCRIPTION]. PushPiper also enforces a limit of 1,024 characters on message bodies and rejects longer messages with HTTP 400, so keeping alerts concise prevents failed requests.
Managing alert quotas and limits
Flapping services cause bursts. Monitoring tools check endpoints on short intervals, so an unstable service can generate a sudden burst of notifications if it fails repeatedly.
- Every message counts once per recipient toward your monthly quota.
- The free plan includes 10,000 messages a month, which reset on the 1st of each month at 00:00 UTC.
- When an account hits its monthly limit, PushPiper returns HTTP 429 until the quota resets on the first of the month or until you purchase extra message packs to cover the gap.
- App tokens have a rate limit of 600 requests a minute.
If you share monitoring duties with a team, team accounts pool 25,000 messages across all members. Remember that sending an alert to a group of five users counts as five messages against that monthly pool.
Sources
Questions and answers
Why do custom Gatus alerts fail if I omit the HTTP method?
Gatus defaults to sending custom alerts with HTTP GET if you do not define a method. Add method: "POST" inside your alerting.custom block to fix it.
Can Gatus notifications break through Do Not Disturb on iOS?
No, PushPiper notifications cannot break through iOS Do Not Disturb or Focus modes. High and emergency priorities bypass PushPiper's own quiet hours, but PushPiper cannot send iOS critical alerts that break through Do Not Disturb or Focus.
Can I self-host PushPiper alongside my Gatus instance?
No, PushPiper is a hosted service and does not offer a self-hosted option. If you must run your alert server on your own hardware, you can evaluate self-hosted alternatives like Gotify or ntfy.
Does PushPiper support emergency repeat alerts from Gatus?
Yes, you can set priority to 2 in your JSON body along with retry and expire parameters. PushPiper will repeat the alert until an operator acknowledges it or the expire timer runs out.