Duplicate silences will show "0" in impacted alerts

This issue has been tracked since 2022-01-24.

Karma-0.94

How to reproduce :

In karma, set a silence on an alert.

Click on the top right clock "New Silence", then Browse and see your silence. You should see your silence with "1" as the number of alerts.

Set a new silence, exactly the same as before. There should now be 2 silences for that alert.

Click again on the top right clock "New Silence", then Browse and see your silence. You should now see the 2 silences.

Here is the bug : one silence shows "1" as the number of alerts. But the other one shows 0.

image

Investigations

Alertmanager

In Alertmanager, we can see the 2 silences. Each silence show 1 affected alert. So the problem is probably not in Alertmanager.

Alertmanager version : 0.23.0

Remove one silence

Remove one silence : remove the silence that showed "1" alert. Then refresh and check the other silence : the "0" is now "1".

Expected behaviour

Click on the top right clock "New Silence", then Browse and see your silence.

For each silence we should see the number of affected alerts (just as in Alertmanager).

prymitive wrote this answer on 2022-01-31

Should be fixed in main branch, thanks

More Details About Repo
Owner Name prymitive
Repo Name karma
Full Name prymitive/karma
Language TypeScript
Created Date 2018-09-09
Updated Date 2023-03-17
Star Count 1921
Watcher Count 33
Fork Count 166
Issue Count 2

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date