Skip to main content
Push EMQX alert events to Flashduty through Webhook.

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.
  1. In the Flashduty console, select Channel and open a channel
  2. Select Configuration → Integrations → Private integration, then click Add integration
  3. Select EMQX integration and click Save to generate a card
  4. 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.
  1. In the Flashduty console, go to Integration Center → Alert Events
  2. Select EMQX integration:
    • Integration Name: Define a name for this integration
  3. Configure the default route and select a channel. You can add more rules under Routing after creation
  4. Click Save and copy the generated Push URL

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

Where: EMQX Cloud console › Your deployment › Alerts › Alert Integrations › Webhook integration area › + NewClick 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.
After a few seconds, go back to Flashduty. If the integration shows a Latest event time, the setup works.

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.

FAQ