What you’ll get: Alertmanager or Grafana sends its alerts straight to ewake. Ewake picks up each alert, starts investigating, and posts an alert card that shows its live plan while it works. No alert bot and no Slack channel in between.
How it works
Alertmanager and a Grafana contact point send the same webhook payload, so one flow takes either sender.- One investigation per alert. A notification can group several alerts. Ewake starts one investigation for each alert in the group.
- No repeat runs. Alertmanager sends an open alert again on
group_intervalandrepeat_interval. Ewake ignores these reminders while the alert stays open. - Resolves close the loop. When the alert resolves, its card turns from red to green.
- Labels are fields. Every label and annotation of the alert becomes an attribute that you can filter and route on, for example
attributes.severityorattributes.namespace. Thesummaryannotation becomes the title, anddescriptionbecomes the body.
Prerequisites
- Slack connected, and ewake invited to the channels where it posts its answers. See Add Ewake to a channel.
- Access to
alertmanager.yml, or permission to edit Contact points in Grafana. - A network path from Alertmanager or Grafana to ewake. See Which URL to use.
Create the flow in ewake
1
Start a new event flow
In your ewake dashboard, click On-call in the sidebar, then New on-call agent, then An event.
2
Choose how ewake answers
Pick Post in an on-call channel. An alert pushed from Alertmanager or Grafana has no Slack message to reply under, so ewake posts one card per alert in the channels you pick.
3
Choose Alertmanager / Grafana
Under Where do the events come from?, pick Alertmanager / Grafana.
4
Finish the flow
Pick what ewake investigates and where it answers, then the report and the follow-ups. See Create a flow for each step. Click Create the flow.
5
Copy the endpoint and the token
The last step shows the endpoint, the token and the connect steps for both senders.
Connect Alertmanager
1
Add the receiver
In Keep
alertmanager.yml, add this entry to the receivers list. Ewake fills in the URL and the token for you.send_resolved: true. Without it, ewake never learns that the alert resolved, and the card stays red.2
Add the route
Add this entry first in the Change the
route.routes list:matchers so that they select only the alerts ewake should investigate. continue: true lets the routes after it match the same alert, so your existing receivers still get it.3
Reload Alertmanager
Reload or restart Alertmanager.
Alertmanager is connected. The next alert that matches the route starts an investigation, and its card appears in the channels of the flow.
Connect Grafana
1
Add a contact point
In Grafana, go to Alerting → Contact points and click Add contact point. Pick the Webhook integration and paste the webhook URL from ewake as the URL.
2
Set the authorization header
Under Optional Webhook settings, set:
Leave Title, Message and Custom Payload empty. Ewake reads Grafana’s default payload.
3
Send alerts to it
Save the contact point. Then send alerts to it from a notification policy, or select it on the alert rule itself.
Grafana is connected. The next alert routed to this contact point starts an investigation.
Which URL to use
Alertmanager and Grafana usually run inside your own network. So ewake gives this flow a Webhook URL on your dashboard host, which your network already reaches. When your dashboard host is not the public entry of ewake, as on some self-hosted installs, ewake also shows a Public URL below it. Use the public URL if your sender cannot reach the first one, and for Grafana Cloud, which runs outside your network.Troubleshooting
No card appears after an alert fires
No card appears after an alert fires
- Check that ewake is invited to every channel the flow answers in. Ewake cannot post in a channel it is not a member of.
- Check that the flow is On on the On-call page.
- Check that the alert matches your Alertmanager route, or that your notification policy sends it to the contact point.
- Check the flow’s filter and exclusions. Open the flow and look at Recent events through this flow: an alert that ewake received but skipped is counted there.
The card stays red after the alert resolved
The card stays red after the alert resolved
Alertmanager sends the resolve only when
send_resolved: true is set on the receiver. Grafana sends it by default.Alertmanager logs a 401
Alertmanager logs a 401
The token is wrong, or it was rotated. Rotate it again from the flow’s page, then update
credentials in the receiver, or the credentials of the contact point.Some alerts of a large group never reach ewake
Some alerts of a large group never reach ewake
If you set
max_alerts on the receiver, Alertmanager leaves the other alerts of the group out of the notification. Ewake never receives them. Remove max_alerts, or raise it.Need help setting this up? Contact support@ewake.ai.