ALERT_NOTIFICATION_TRIGGER when the alert triggers, and sends ALERT_NOTIFICATION_CLEAR when it clears, which recovers the alert. Both test alerts (Cloud Agent and Enterprise Agent tests) and agent notifications (agent offline, clock offset, and so on) are supported.
In Flashduty On-call
You can obtain an integration push URL in either of the following ways.
Use a dedicated integration
- In the Flashduty console, select Channel and open a channel
- Select Configuration → Integrations → Private integration, then click Add an integration
- Select ThousandEyes, then click Save
- Open the generated integration card and copy the Push URL
Use a shared integration
- In the Flashduty console, select Integration Center → Alert Events
- Select ThousandEyes and enter an integration name
- Configure the default route and select a channel; after creation, add more rules under Route if needed
- Click Save and copy the generated Push URL
Configure ThousandEyes
Editing alert rules and webhooks requires permission to manage alert rules in ThousandEyes. Webhook alert notifications are not available in the ThousandEyes for Government instance.
1
Add a webhook
- Log in to ThousandEyes and go to Manage → Alert Rules
- Expand an alert rule and open the Notifications tab
- In the Webhooks section, click Configure Webhooks (Edit webhooks if webhooks already exist), then click Add New Webhook
- Fill in the fields as follows:
- Click Test. Webhook test completed successfully means the URL is reachable
- Save the webhook
Use this alert-rule webhook, which ThousandEyes calls a classic webhook. Do not use a custom webhook operation under Manage → Integrations → Integrations 2.0. Flashduty parses the fixed classic webhook format.
2
Select the webhook in alert rules
- Back on the alert rule’s Notifications tab, select the webhook you created under Webhooks
- Leave Add Custom Payload empty. Flashduty does not read custom key-value pairs
- Save the alert rule. Select the webhook in every alert rule that should send alerts, including the rules for agent notifications
3
Verify
- Clicking Test sends a
WEBHOOK_TESTevent. Flashduty returns success but does not create an alert - Make an alert rule that uses the webhook trigger (for example, lower its threshold temporarily), and confirm that Flashduty receives an active alert
- Wait for the alert to clear (or restore the threshold), and confirm that the alert is recovered
Alert Key
Flashduty uses the ThousandEyes alert ID (
alert.alertId) as the Alert Key. ThousandEyes assigns a unique alertId to each generated alert, and the trigger and clear notifications of one alert carry the same alertId, so the clear notification recovers the matching Flashduty alert.
- Triggering again: when an alert triggers again after it clears, ThousandEyes generates a new alert with a new
alertId, and Flashduty creates a new alert - Multiple agents: an alert that involves several agents still has one
alertId, so it is one Flashduty alert; each agent’s metrics are listed in the alert description - The
eventIddiffers on every delivery and is not part of the Alert Key. Changes to the rule name, severity, metric values, or time do not change the Alert Key either. Requests withoutalert.alertIdare rejected
Status and severity
The status is determined by
eventType:
The severity is determined by the alert rule severity (
alert.severity):
Alert rules created with Add New Alert Rule in ThousandEyes default to the Info severity, and such alerts are Info in Flashduty; the built-in Default Alert Rules default to Minor. For a higher severity, change the alert rule’s Severity in ThousandEyes. A recovered alert keeps the severity it had when it triggered.
Labels
The alert title is “alert rule name: test name”, or “alert rule name: agent name” for agent notifications. The alert description contains the alert condition and each agent’s metrics when the alert triggered.
Troubleshooting
- Flashduty returns a parameter error: make sure the URL is complete, not encoded, and includes
integration_key, and that you use the classic webhook in the alert rule rather than a custom webhook - No alert after clicking Test: this is expected. The test event does not create an alert; verify with a real alert
- The alert does not recover: make sure the alert has cleared in ThousandEyes. A global alert clears only after all of its agents no longer meet the condition; while any agent is still alerting, no clear notification is sent
- An alert rule sends nothing: webhooks are selected per alert rule. Make sure the Flashduty webhook is selected in that rule’s Notifications