-
-
Notifications
You must be signed in to change notification settings - Fork 630
Closed
Labels
area/alertingRelated to alertingRelated to alertingbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Describe the bug
When using the native incident.io alert provider in Gatus, the first firing does not include a deduplication_key in the request body. As a result, incident.io responds with HTTP 422 ("Deduplication key is required") and no incident is created. This prevents incident.io integration from working out of the box.
What do you see?
- Gatus triggers an alert for an endpoint configured with the incident.io provider.
- The POST request sent to incident.io does not include a
deduplication_key. - The incident.io API responds with a 422 error: "Deduplication key is required".
- No incident is created in incident.io.
What do you expect to see?
- On the first firing, Gatus should generate and send a valid
deduplication_keyin the incident.io payload so that an incident is created. - If
send-on-resolvedis enabled, the same key should be reused for resolve events. - If not, a new key should be generated for each firing as needed.
List the steps that must be taken to reproduce this issue
- Configure Gatus with the incident.io alert provider:
alerting: incident-io: url: "https://api.incident.io/v2/alert_events/http/<id>" auth-token: "<token>" endpoints: - name: example url: "https://example.org/health" conditions: - "[STATUS] == 200" alerts: - type: incident-io description: "service down" send-on-resolved: true
- Trigger an alert (e.g., stop the monitored service so that the endpoint fails).
- Observe the outgoing POST request to incident.io and the 422 response.
- Confirm that no incident appears in incident.io dashboard.
Version
5.24.3
Additional information
Additional context
- This happens because the provider only sets
deduplication_keyfromalert.ResolveKey, which is empty on the first firing. - See alerting/provider/incidentio/incidentio.go for reference.
Metadata
Metadata
Assignees
Labels
area/alertingRelated to alertingRelated to alertingbugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed