prometheus / prometheus/alertmanager
FR: sort matchers on silences page
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.6k
- Forks
- 2.5k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 61
Description
Currently matchers are not sorted on "silences" page. I ask to add sorting.
What did you do?
Create 2 silences with matchers:
- instance=foo job=myjob alertname=InstanceDown
- alertname=InstanceDown instance=bar job=myjob
Go to alertmanager silences page.
What did you expect to see?
Sorted matchers, like this:
- alertname=InstanceDown instance=foo job=myjob
- alertname=InstanceDown instance=bar job=myjob
What did you see instead? Under which circumstances?
Unsorted matchers:
- instance=foo job=myjob alertname=InstanceDown
- alertname=InstanceDown instance=bar job=myjob
Environment
-
Alertmanager version:
0.27.0 (0aa3c2aad14cff039931923ab16b26b7481783b5) -
Prometheus version:
2.51.2 (b4c0ab52c3e9b940ab803581ddae9b3d9a452337)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Alertmanager silences page and trace how matchers are displayed. Reproduce the issue by creating the two silences described in the report, then verify that the rendered matchers use a consistent sorted order and that both examples appear as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100