prometheus / prometheus/alertmanager
Inhibit alerts by groupname matcher
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.6k
- Forks
- 2.5k
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 61
Description
Currently an inhibit rule can take alertname as a matcher, e.g.:
inhibit_rules:
- source_match:
alertname: InstanceDown
It could be handy if it was possible to use groupname as a matcher as well, to be able to:
- inhibit entire alert groups.
- have alerts with the same name but in different groups, and inhibit only one of them.
groups:
- name: Instances
rules:
- alert: InstanceDown
expr: up == 0
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 by tracing how inhibit_rules and source_match currently handle the alertname matcher, then follow how alert groups are represented from the groups configuration. Check the existing inhibition behavior and tests before deciding how groupname should interact with alerts sharing a name. Done means group-based inhibition works for the supplied examples without changing alertname matching.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100