In Flashduty On-call
You can get the integration key 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
- Choose ElastAlert 2 integration and click Save to generate a card
- Open the generated integration card and copy the Push URL. The part after
integration_key=is the integration key
Use a shared integration
Choose this option if you need to route alerts to different channels based on the alert payload.In ElastAlert 2
1
Add the Flashduty alert type to an ElastAlert 2 rule file
Where: The ElastAlert 2 host › rule file (for example
rules/elastalert2_alert.yaml) › alertFollow the ElastAlert Flashduty push configuration document. Create or edit the rule file, set alert to flashduty, and fill in these keys:The part after
flashduty_ is the field name in this table:2
Restart ElastAlert 2 and confirm
Where: A terminal on the ElastAlert 2 hostRestart ElastAlert 2 so the rule takes effect, then wait for the rule to match. ElastAlert 2 only sends an event when a rule matches; to recover an existing alert, send an event with After a few seconds, go back to Flashduty. If the integration shows a Latest event time, the setup works.
flashduty_event_status: "Ok" and the same flashduty_alert_key as the trigger.Recovery rule example: a second rule matches the “recovered” log and sends an Ok event with the same flashduty_alert_key as the trigger rule: