Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

alerting-rules: ContinuousTaskEnded alert shouldn't drop unspecified labels #8369

Merged
merged 1 commit into from
Mar 16, 2021

Conversation

gabreal
Copy link
Contributor

@gabreal gabreal commented Mar 16, 2021

When using the - operators and specifying matching labels with the on keyword all other labels are being dropped. This breaks some custom alert routing where additional labels are made use of.

This can be prevented with adding the generic group_left() parameter which basically defines which label set to take from as a base.

ref: https://prometheus.io/docs/prometheus/latest/querying/operators/

@gabreal gabreal added A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. labels Mar 16, 2021
@gabreal gabreal requested review from s3krit, tomaka and lovelaced March 16, 2021 09:59
@gabreal gabreal requested a review from a team as a code owner March 16, 2021 09:59
@gabreal gabreal merged commit c532e0b into master Mar 16, 2021
@gabreal gabreal deleted the alerting-rules-labelling branch March 16, 2021 12:44
hirschenberger pushed a commit to hirschenberger/substrate that referenced this pull request Apr 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants