Skip to content

Add Mimir Alertmanager alerts #1472

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

Merged
merged 7 commits into from
Jan 20, 2025
Merged

Add Mimir Alertmanager alerts #1472

merged 7 commits into from
Jan 20, 2025

Conversation

TheoBrigitte
Copy link
Member

@TheoBrigitte TheoBrigitte commented Jan 20, 2025

Towards: giantswarm/roadmap#3752

Adding some Mimir Alertmanager alerts to detect failures.

This a bit of a random pick, but we need something to start with and evaluate if things are running smoothly.

Those alerts are taken from upstream, therefore using upstream ops recipes until we have better ones.

@TheoBrigitte TheoBrigitte self-assigned this Jan 20, 2025
@TheoBrigitte TheoBrigitte requested a review from a team as a code owner January 20, 2025 12:12
@QuentinBisson
Copy link
Contributor

This PR is missing the changelog entry as well as tests for the alerts.

On top of that, could you add a comment explaining that those are coming from upstream like so?

Does the dashboard that is linked in the alert exists in our grafanas?

Stopping here but for the mimir alerts we put them all into the mimir alerts using another rule group:

I would advocate that we do the same :)

@TheoBrigitte
Copy link
Member Author

This PR is missing the changelog entry as well as tests for the alerts.

Added a changelog entry, will add unit tests

On top of that, could you add a comment explaining that those are coming from upstream like so?

Added a comment with a link to upstream

Does the dashboard that is linked in the alert exists in our grafanas?

The dashboard uid is valid and points to our Mimir Alertmanager dashboard

Stopping here but for the mimir alerts we put them all into the mimir alerts using another rule group:

I though having those alerts in another files would separate things and avoid a too long file for mimir.rules, but I moved them in there.

Comment on lines -140 to +141
if ! isInArray "$opsrecipe" "${opsRecipes[@]}"; then
# or is a valid URL starting with http
if ! isInArray "$opsrecipe" "${opsRecipes[@]}" && [[ "$opsrecipe" != http* ]]; then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do we think about this ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

@QuentinBisson
Copy link
Contributor

I'm fine with splitting the alerts into multiple files but I would rather we have them in a folder then and that we do it for all alerts :)

@TheoBrigitte TheoBrigitte merged commit 15b1ee1 into main Jan 20, 2025
7 checks passed
@TheoBrigitte TheoBrigitte deleted the mimir-alertmanager-alerts branch January 20, 2025 13:52
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.

2 participants