Help understanding Alertmanager configuration

145 views
Skip to first unread message

nsmeds

unread,
Apr 24, 2017, 8:35:14 PM4/24/17
to Prometheus Users
There's two settings I've been reading about but still hope to find some clarification on:

`group_by`
`inhibit_rule`

Someone else has configured these settings for our servers, however I don't quite understand the logic behind it.

prometheus::alertmanager::inhibit_rules:
  - source_match:
      severity: 'critical'
    target_match:
      severity: 'warning'
    equal:
      - 'alertname'
      - 'role'
      - 'service'
      - 'stack'
      - 'domain'
      - 'realm'

Just to confirm, with the above `inhibit_rules` settings: only if all matchers match (same alertname, role, etc.) will the severity: warning alert be silenced? I ask because many of our instances still do not have the stack label associated with them.

prometheus::alertmanager::route:
  group_by:
    - 'alertname'
    - 'role'
    - 'service'
    - 'stack'
    - 'domain'
    - 'realm'

Similar to the above: do ALL label names have to match for alerts to be grouped together?
Reply all
Reply to author
Forward
0 new messages