I want to defined serverity level by group name , for example:
rule file:
groups:
- name: *critical_for_xxx*
rules:
- alert: xxxx
- name: waring_for_xxx
alerting:
alert_relabel_configs:
- source_labels: [ ... ]
regex: (*critical*).+
target_label: serverity
replacement: critical
what it needs in source_labels [ ] to regex rule name to match?
--
You received this message because you are subscribed to the Google Groups
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/prometheus-users/7a235498-d3a6-4fb6-9847-3488edc31f04n%40googlegroups.com.