console icon indicating copy to clipboard operation
console copied to clipboard

[WIP] Bug 2115347: Monitoring: Add support for Alertmanager negative matchers

Open kyoto opened this issue 2 years ago • 8 comments

Alertmanager now supports "negative matchers", which invert the meaning of a label / value matcher. The negative matcher checkbox changes = (value equals) into != (value does not equal) and changes =~ (value matches regex) in to !~ (value does not match regex).

This fixes a bug where Alertmanager silences with negative matchers were not handled correctly. The negative matcher flag was ignored, so they were treated as normal (= or =~) matchers.

screenshot-1

kyoto avatar Oct 06 '22 04:10 kyoto

@kyoto: This pull request references Bugzilla bug 2115347, which is invalid:

  • expected the bug to target the "4.12.0" release, but it targets "---" instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

In response to this:

[WIP] Bug 2115347: Monitoring: Add support for Alertmanager negative matchers

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Oct 06 '22 04:10 openshift-ci[bot]

/bugzilla refresh

kyoto avatar Oct 06 '22 04:10 kyoto

@kyoto: This pull request references Bugzilla bug 2115347, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

/bugzilla refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Oct 06 '22 04:10 openshift-ci[bot]

/retest

kyoto avatar Oct 06 '22 08:10 kyoto

/label px-approved

RickJWagner avatar Oct 06 '22 12:10 RickJWagner

/label docs-approved

TanyaShearonRH avatar Oct 13 '22 19:10 TanyaShearonRH

@kyoto: This pull request references Bugzilla bug 2115347, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.12.0) matches configured target release for branch (4.12.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

[WIP] Bug 2115347: Monitoring: Add support for Alertmanager negative matchers

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Oct 24 '22 15:10 openshift-ci[bot]

/retest

kyoto avatar Oct 25 '22 00:10 kyoto

@kyoto: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

openshift-ci[bot] avatar Oct 25 '22 04:10 openshift-ci[bot]

/lgtm

jgbernalp avatar Oct 25 '22 05:10 jgbernalp

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jgbernalp, kyoto, spadgett

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Oct 25 '22 05:10 openshift-ci[bot]

@kyoto: All pull requests linked via external trackers have merged:

Bugzilla bug 2115347 has been moved to the MODIFIED state.

In response to this:

Bug 2115347: Monitoring: Add support for Alertmanager negative matchers

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

openshift-ci[bot] avatar Oct 25 '22 05:10 openshift-ci[bot]