Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Allow a user to be able to add additional labels to a silence via alertmanager ui #69

Closed
Kellel opened this issue Apr 21, 2017 · 2 comments
Assignees

Comments

@Kellel
Copy link

Kellel commented Apr 21, 2017

It would be good to be able to specify labels that are not part of a currently firing alert so that we can reduce the number of silences that are needed.

For exampe I would like to do the following:
{ "node": "foo", "instance": "foo" }

on an alert where only instance is firing

@prymitive prymitive added this to the v0.5 milestone Apr 21, 2017
@prymitive
Copy link
Contributor

prymitive commented Apr 21, 2017

I'm not sure how is a more fine grained silence reducing the number of silences needed, it should require you to provide more silences in the end? Isn't it the other way around? If you want to silence the whole alert group you just need to un-check instance/node specific labels in the silence form, right?
Anyway a more feature rich silence form is likely to happen, but that's one of the "20% of features that take 80% of the time" deals.

Update: I think I get it - when there are 2 instances of an alertname: foo right now you can only silence both individually, skipping instance labels will silence entire group of alerts, not just for those 2 instances, but for all new instances too.
We could pull a list of all labels from the group and allow to select multiple values, or just let the user input whatever is needed. Will experiment with it.

prymitive added a commit that referenced this issue Apr 22, 2017
This commit turns label checkboxes into multiselect dropdowns that are populated from all labels in current alert group. There is also a cocollapsible preview box that allows user to inspect raw silence JSON object we will send to the Alertmanager API. Fixes #69
@prymitive
Copy link
Contributor

See if #70 solves your request

@prymitive prymitive self-assigned this Apr 22, 2017
@prymitive prymitive removed this from the v0.5 milestone Apr 22, 2017
prymitive added a commit that referenced this issue Apr 22, 2017
This commit turns label checkboxes into multiselect dropdowns that are populated from all labels of all instances of current alert (matched by alertname label). There is also a cocollapsible preview box that allows user to inspect raw silence JSON object we will send to the Alertmanager API. Fixes #69
prymitive added a commit that referenced this issue Apr 23, 2017
This commit turns label checkboxes into multiselect dropdowns that are populated from all labels of all instances of current alert (matched by alertname label). There is also a cocollapsible preview box that allows user to inspect raw silence JSON object we will send to the Alertmanager API. Fixes #69
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants