Prometheus Alertmanager push notifications
Prometheus Alertmanager reaches your phone through PushPiper's email gateway, free for 10,000 messages a month on 10 devices. Its built-in Pushover receiver only talks to api.pushover.net and its webhooks send nested JSON, so email is the route that needs no relay. Long bodies are clipped to 1,024 characters instead of rejected.
Why Alertmanager push options fail
If you look through Alertmanager's receiver settings, two options seem like natural fits for push alerts, but both run into technical limits. The first is pushover_config. PushPiper uses an API compatible with Pushover, so you might expect to point Alertmanager at api.pushpiper.com. You can't do that. Alertmanager's pushover_config has no setting for an API URL, which means it always sends requests to api.pushover.net.
The second option is webhook_configs. Alertmanager builds its own nested JSON payload containing version strings, status fields, an alerts list, labels, and annotations. PushPiper's API requires flat JSON where values are strictly strings, numbers, or booleans, or standard form-encoded data. When Alertmanager posts its nested payload to PushPiper's endpoint, the API refuses the request as malformed.
Here is how Alertmanager's built-in receiver types compare when sending notifications to PushPiper.
| Receiver type | Works with PushPiper | Why |
|---|---|---|
pushover_config | No | URL is hardcoded to api.pushover.net |
webhook_configs | No | Nested JSON body is refused |
email_configs | Yes | Subject becomes the title, text the message |
Set up a PushPiper email address
Because direct webhooks and Pushover configs fail, the working path is email_configs. PushPiper includes an email-to-push gateway that assigns unique inbox addresses to your account. When Alertmanager sends an email to that address, PushPiper turns the subject into the title and pushes the plain-text body straight to your browser or phone.
You can set this up in a few steps:
- Go to open PushPiper and sign up free using your Google account.
- Open Settings, then click Email.
- Generate a new incoming address.
- Assign a label, pick a notification sound, and choose a priority level from -2 up to 1.
Each address is a random 20-character string at pushpiper.app, like k3v9x2m7q8w1p4z6t5r0@pushpiper.app. You can create up to 20 private addresses. Treat every address like a password. Anyone who knows the string can mail it and trigger a notification on your devices.
Configure Alertmanager with email_configs
Once you have your address, point Alertmanager at an SMTP smarthost so it can deliver outbound mail. Alertmanager's email_configs requires an SMTP smarthost to send mail to your pushpiper.app address.
Add your receiver and routes in alertmanager.yml using this configuration:
route:
receiver: phone
receivers:
- name: phone
email_configs:
- to: "k3v9x2m7q8w1p4z6t5r0@pushpiper.app"
from: "alertmanager@example.com"
smarthost: "smtp.example.com:587"
auth_username: "alertmanager@example.com"
auth_password: "SMTP_PASSWORD"
send_resolved: true
headers:
Subject: '[{{ .Status | toUpper }}] {{ .CommonLabels.alertname }}'
text: '{{ range .Alerts }}{{ .Annotations.summary }}{{ "\n" }}{{ end }}'You need to update several values in this configuration before deploying it:
- Replace
k3v9x2m7q8w1p4z6t5r0@pushpiper.appwith the actual address generated in your PushPiper settings. - Set
fromto the sending address your mail server accepts. - Set
smarthostto your SMTP host and port, such assmtp.example.com:587. - Provide your SMTP credentials in
auth_usernameandauth_password.
The template lines define what shows up on your screen. The Subject header becomes the notification title, combining the alert status and alert name. The text field becomes the notification body. PushPiper clips incoming email bodies to 1,024 characters, so looping through summary annotations keeps the payload concise and readable.
Route critical alerts and handle priorities
Different alerts require different urgency levels. In PushPiper, priority 0 alerts make a sound during the day but remain silent during your device's configured quiet hours. Setting an address to priority 1 makes it high urgency, which means notifications play sounds even during quiet hours.
To separate noisy warnings from serious production outages, create two distinct addresses in your PushPiper account:
- Set one address to priority 0 with a standard sound like
pushoverfor low-severity alerts. - Set a second address to priority 1 with a loud sound like
sirenfor firing production alerts. - In Alertmanager, define two receivers pointing to these separate addresses and route your alert tree by severity labels.
Keep in mind that email addresses cannot use emergency priority 2. PushPiper's priority 2 alerts are designed for repeating emergency alerts that ring every retry seconds (at least 30) until someone acknowledges them. If you need priority 2 alerts from Alertmanager, you cannot use email_configs, so you must run a small intermediary relay that accepts Alertmanager's webhook JSON, flattens the parameters, and posts them directly to PushPiper's API reference endpoint with priority 2, a retry interval, and an expire deadline.
Delivery limits and platform behavior
PushPiper delivers notifications over Web Push to your browser rather than through native store packages. It runs on Windows, macOS, Linux, and Android using Chrome, Firefox, Edge, or Safari. For iPhone and iPad running iOS or iPadOS 16.4 or later, open pushpiper.com/app in Safari, tap Share, and select Add to Home Screen. PushPiper does not have native App Store or Play Store apps yet, does not send SMS or place phone calls, cannot be self-hosted, and has no built-in on-call schedules or escalation policies. It also cannot send iOS critical alerts that break through Do Not Disturb or Focus modes.
The email gateway has several operational rules to know:
- The rate limit is 30 emails a minute per address.
- Incoming emails cannot exceed 10 MB in total size.
- Plain-text bodies are clipped to the first 1,024 characters, and HTML-only mail is converted to text automatically.
- Email signatures and quoted replies are stripped from the delivered notification.
- The first image attachment up to 5 MB is delivered, and other attachments are dropped.
- Each received email counts as one message toward your monthly quota of 10,000 free messages.
- Email gateway messages are not end-to-end encrypted.
Sources
Questions and answers
Can I send Alertmanager alerts directly through webhook_configs?
No. Alertmanager sends nested JSON containing arrays and objects, which the PushPiper API rejects as malformed. PushPiper requires flat JSON with simple strings, numbers, or booleans, or standard form-encoded data.
How do I receive resolved alert notifications?
Set send_resolved to true inside your email_configs block. Alertmanager defaults this setting to false, which prevents it from sending an email when an alert condition clears.
Can I trigger priority 2 emergency alerts with email_configs?
No. PushPiper email addresses only support priorities from -2 to 1. Emergency priority 2 requires calling the HTTP API directly with retry and expire parameters, which requires a custom relay script between Alertmanager and PushPiper.
What happens if an alert email exceeds 1,024 characters?
PushPiper's email gateway clips the body text to 1,024 characters and delivers the message normally. The HTTP API would reject an oversized payload with an HTTP 400 error, but the email gateway truncates it instead.
Are notifications sent through email_configs end-to-end encrypted?
No. While PushPiper supports end-to-end encryption for messages sent directly to its API using encryption keys, messages routed through the pushpiper.app email gateway are not end-to-end encrypted.