Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@NerdySoftPaw
Copy link
Contributor

@NerdySoftPaw NerdySoftPaw commented Sep 26, 2025

This pull request introduces deduplication key generation and improved metadata handling for incident.io alerting integration. The main changes are the addition of a function to generate a unique deduplication key for each alert and the merging of endpoint extra labels into the alert metadata.

Incident deduplication and metadata improvements:

  • Added generateDeduplicationKey function in dedup.go to create a unique deduplication key for each alert using endpoint key, alert type, description, and timestamp. This key is used to identify and group related incidents in incident.io.
  • Updated buildRequestBody in incidentio.go to assign a deduplication key to alerts if not already present, ensuring proper incident grouping in incident.io.
  • Enhanced metadata merging in buildRequestBody so that endpoint ExtraLabels are combined with the provider's configured metadata, allowing for more detailed and context-rich incident reports.

Fixes: #1293

@github-actions github-actions bot added bug Something isn't working area/alerting Related to alerting labels Sep 26, 2025
@NerdySoftPaw
Copy link
Contributor Author

I also added that the extra labels will be merged to the metabase object so that they are accessible in incident.io

@NerdySoftPaw NerdySoftPaw requested a review from TwiN September 29, 2025 07:40
@TwiN
Copy link
Owner

TwiN commented Oct 3, 2025

@NerdySoftPaw Looks like the tests are failing

@NerdySoftPaw
Copy link
Contributor Author

@NerdySoftPaw Looks like the tests are failing

@TwiN let me fix this very quick

Copilot AI and others added 2 commits October 3, 2025 15:21
…b-bfbc-51f7e660a41f

Fix incidentio test failures by handling dynamic deduplication_key field
@NerdySoftPaw
Copy link
Contributor Author

tests should be fixed @TwiN.
i did not changed the tests after my changes that was the reason as quick fix i used copilot to fix it. pleas check again

@TwiN TwiN merged commit 65eaed4 into TwiN:master Oct 3, 2025
2 checks passed
@TwiN
Copy link
Owner

TwiN commented Oct 3, 2025

Thank you for the contribution!

alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Oct 7, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.25.2` -> `v5.26.0` |

---

### Release Notes

<details>
<summary>TwiN/gatus (ghcr.io/twin/gatus)</summary>

### [`v5.26.0`](https://github.com/TwiN/gatus/releases/tag/v5.26.0)

[Compare Source](TwiN/gatus@v5.25.2...v5.26.0)

#### What's Changed

- feat(alerting): Add support for n8n alerts by [@&#8203;TwiN](https://github.com/TwiN) in [#&#8203;1309](TwiN/gatus#1309)
- feat(client): Support body placeholder for SSH endpoints  by [@&#8203;yansh97](https://github.com/yansh97) in [#&#8203;1286](TwiN/gatus#1286)
- feat(alerting): Add RESULT\_CONDITIONS in custom alert to have more information by [@&#8203;aalmenar](https://github.com/aalmenar) in [#&#8203;1086](TwiN/gatus#1086)
- fix(alerting): Implement deduplication key generation for incidentio alerts by [@&#8203;NerdySoftPaw](https://github.com/NerdySoftPaw) in [#&#8203;1296](TwiN/gatus#1296)
- fix(ui): Swap oldest/newest result time for SuiteCard.vue by [@&#8203;TwiN](https://github.com/TwiN) in [#&#8203;1308](TwiN/gatus#1308)
- fix(alerting): Format link from Telegram alert description when sending message  by [@&#8203;andriyor](https://github.com/andriyor) in [#&#8203;1200](TwiN/gatus#1200)
- chore(deps): Update aws-sdk-go to aws-sdk-go-v2 by [@&#8203;TwiN](https://github.com/TwiN) in [#&#8203;1305](TwiN/gatus#1305)

#### New Contributors

- [@&#8203;NerdySoftPaw](https://github.com/NerdySoftPaw) made their first contribution in [#&#8203;1296](TwiN/gatus#1296)
- [@&#8203;yansh97](https://github.com/yansh97) made their first contribution in [#&#8203;1286](TwiN/gatus#1286)
- [@&#8203;andriyor](https://github.com/andriyor) made their first contribution in [#&#8203;1200](TwiN/gatus#1200)

**Full Changelog**: <TwiN/gatus@v5.25.2...v5.26.0>

</details>

---

### Configuration

πŸ“… **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

β™» **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

πŸ”• **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzUuNCIsInVwZGF0ZWRJblZlciI6IjQxLjEzNS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbWFnZSJdfQ==-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/1689
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/alerting Related to alerting bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

incident.io provider does not send deduplication_key on first firing, causing 422 error

2 participants