Send Nightingale alerts to Flashduty
Use Nightingale's built-in Flashduty media type to deliver a test alert, acknowledge it, and check recovery.
Last reviewed
By the end, you will have an alert in Flashduty and a recovery event that closes it. Nightingale evaluates your rules and sends the events. Flashduty On-call handles the schedule, acknowledgment and escalation.
You need permission to edit Nightingale media types and rules, and a Flashduty workspace where you can create an integration. Use a test channel whose recipients know to expect the alert.
Create the integration
- In Flashduty, open Integration Center → Alert Events and select the Nightingale / Flashcat integration.
- Set the default route to your test channel, save the integration, and copy the generated Push URL.
You should have a complete URL including an integration_key. The key is part of the credential, so keep the URL out of screenshots and shared logs.
Configure the media type and rule
- In Nightingale, go to Alerting → Media types, open the built-in Flashduty media type, paste the full Push URL into URL, and save. If your instance has a production Flashduty configuration, create a separate media type for the test.
- Add a notification rule using that media type. Leave Channels empty to use the default route you set in Flashduty, or select your test channel. Include the test alert's severity and current time in the rule.
- Bind the notification rule to a rule in a test business group and enable recovery notifications. The test alert and its recovery should go to the same channel.
The media type should save with the full URL, and the test alert rule should show the notification rule you just attached.
Send a test and confirm delivery
Run the notification test with a mock event or an existing event. In Flashduty, check the integration's Latest event time and find the event in your test channel. Before relying on the rule in production, let Nightingale generate one firing event and one recovery event with the same rule and labels. Verify that the incident opens and then resolves after the recovery arrives.
If the event is missing, verify the full URL, outbound connectivity, and the selected channel or default route. For a real firing event, open Events → event details → Notification records and read the response body. The send status alone cannot confirm Flashduty accepted the event.
Try it with a Categraf CPU metric
First connect Categraf and import the Linux integration. Verify that cpu_usage_idle{cpu="cpu-total"} returns data for your test host. Create a dedicated metric rule named Categraf CPU delivery test, select that host's data source, and attach the notification rule from above.
Once the notification configuration is ready, replace YOUR_HOST with the host's ident and paste the output of this command into the rule's PromQL query. The command sets the test to stop matching after five minutes.
test_host='YOUR_HOST'
test_deadline=$(($(date +%s) + 300))
printf '(100 - cpu_usage_idle{ident="%s",cpu="cpu-total"}) + 1000 * (time() > bool %s) < 101\n' "$test_host" "$test_deadline"
Set the trigger duration to less than five minutes, save and enable the rule. The test deliberately matches normal CPU values during that window. Acknowledge it in your Flashduty test channel, then wait for Nightingale to evaluate the rule after the window ends. Confirm the same incident resolves, then disable the test rule.
Next
- Explore Flashduty On-call for schedules, acknowledgment and escalation.
- See the Flashduty integration reference for earlier Nightingale versions and field mappings.