In Flashduty On-call
You can get the integration push URL in either of the following ways.Use a dedicated integration
Choose this option if all alerts go to one channel. It’s the simpler setup.View dedicated integration setup steps
View dedicated integration setup steps
- In the Flashduty console, select Channel and open a channel
- Select Configuration → Integrations → Private integration, then click Add integration
- Select EMQX integration and click Save to generate a card
- Open the generated integration card and copy the Push URL
Use a shared integration
Choose this option if you need to route alerts to different channels based on the alert payload.In EMQX
EMQX Cloud (hosted service) has a built-in Flashduty alert integration type. Self-hosted EMQX forwards system alarm events through the rule engine. Choose the one that matches your deployment.1
Configure alert push in EMQX
- EMQX Cloud (hosted service)
- Self-hosted EMQX
Where: EMQX Cloud console › Your deployment › Alerts › Alert Integrations › Webhook integration area › + New
Click Confirm to save. When an alert fires, EMQX Cloud pushes it to the push URL with a POST request, carrying four labels:
deployment_id, level, message, and region. EMQX Cloud has no separate recovery configuration, so skip the next step.2
Create the alarm recovery rule in EMQX (self-hosted EMQX only)
Where: EMQX Dashboard › Integration › Rules › CreateCreate another rule following the previous step. The action is configured the same way; the differences are:The
alert_key matches the activation rule, so the corresponding alert in Flashduty recovers automatically when the alarm is deactivated.3
Trigger an alarm and confirm Flashduty receives the event
Where: EMQX Cloud console › Alerts › Alert Integrations (EMQX Cloud); EMQX Dashboard › Monitoring › Alarms (self-hosted EMQX)
- EMQX Cloud: click Test on the saved integration. EMQX sends a sample alert, which only confirms the push URL is reachable; confirm fields and severity with a real alert.
- Self-hosted EMQX: the rules fire only when a system alarm is activated or deactivated and there is no test button. The Active tab under Monitoring › Alarms lists currently active alarms; wait for a real alarm.
Status and severity
EMQX Cloud (hosted service): EMQX Cloud automatically maps alert levels as follows:
Self-hosted EMQX: The alert severity is determined by the
event_status field in the rule’s request body template. In the examples above, alarm activation pushes Critical and alarm deactivation pushes Ok. You can change the activation severity to Warning or Info in the template. Valid values of event_status are Critical, Warning, Info, and Ok.