Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding PagerDuty Native support #76

Merged
merged 5 commits into from
Jun 4, 2024
Merged

Adding PagerDuty Native support #76

merged 5 commits into from
Jun 4, 2024

Conversation

IbraAoad
Copy link
Contributor

Issue

Fixes #61

Raised pagerduty alerts are not using dedupication key to correlating triggers and resolves.
Causing a new alerts to be trigered every interval and alerts are never resolved

Solution

Native PagerDuty support is added to cos-alerter via the PD python client pdpyras

Context

Currently we're depending on Apprise to send notifications to destinations for when an alertmanager instance is down, Apprise currently has no support for adding dedup key to the PagerDuty incident

Testing Instructions

1- Deploy cos-alerter and add a Pagerduty valid connection string pagerduty://{integration_key}@{api_key} to cos-alerter list of destinations
2- PagerDuty incidents should be grouped per an Alertmanager client if it's down
3- Once the Alertmanager client is up again the PD incident should be self-resolved

CHANGELOG.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
cos_alerter/alerter.py Outdated Show resolved Hide resolved
cos_alerter/alerter.py Outdated Show resolved Hide resolved
cos_alerter/alerter.py Outdated Show resolved Hide resolved
@IbraAoad IbraAoad marked this pull request as ready for review June 3, 2024 09:22
@IbraAoad IbraAoad requested a review from a team as a code owner June 4, 2024 10:22
@IbraAoad IbraAoad requested a review from dstathis June 4, 2024 11:15
@IbraAoad IbraAoad merged commit 9aaaf72 into main Jun 4, 2024
7 checks passed
@IbraAoad IbraAoad deleted the OPENG-1918 branch June 4, 2024 11:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid pagerduty alerts duplication
2 participants