Description of problem: it seems openshift console is evaluating empty labels in silences in a different way than alertmanager/prometheus console. There's a pull request upstream to fix this: https://github.com/openshift/console/pull/6940 Handle missing labels as empty Version-Release number of selected component (if applicable): 4.5 This pull request has already been merged and I am reporting this bug to have it included downstream.
Fix was merged for 4.7. The task here is to backport to 4.6 and 4.5.
(In reply to Andrew Pickering from comment #1) > Fix was merged for 4.7. The task here is to backport to 4.6 and 4.5. what is the Target Release for this bug, no value is set
(In reply to Junqi Zhao from comment #2) > what is the Target Release for this bug, no value is set I've now converted this to target 4.7.0 and created https://bugzilla.redhat.com/show_bug.cgi?id=1891697 for the 4.6.z backport.
Issue is fixed in payload 4.7.0-0.nightly-2020-10-27-051128 The console and AlertManager handle silences same way now. I only created one silence with a valid label and an empty label value, for example: nonexistinglabel="", enable Regx. The alert is silenced on both AlertManager and console.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:5633