티스토리 뷰

공부

[prometheus] alertmanager

승가비 2023. 9. 22. 12:55
728x90
global:
  resolve_timeout: 1m
  slack_api_url: https://hooks.slack.com/services/...

route:
  group_by: [alertname]
  group_wait: 30s
  group_interval: 5m
  repeat_interval: 1h
  receiver: prd
  routes:
  - receiver: dev
    matchers:
    - instance=~"0.0.0.0:1234"

receivers:
- name: prd
  slack_configs:
  - channel: error
    send_resolved: true
- name: dev
  slack_configs:
  - channel: error-dev
    send_resolved: true

inhibit_rules:
- source_match:
    severity: critical
  target_match:
    severity: warning
  equal: [alertname, dev, instance]

https://stackoverflow.com/questions/62672730/prometheus-alertmanager-send-notifications-to-multiple-slack-channel

 

Prometheus alertmanager send notifications to multiple slack channel

We have two different teams working on different applications.I would like send alert notifications to different slack channels via using same alerts expressions. I found some examples but not unde...

stackoverflow.com

https://dewble.tistory.com/entry/prometheus-alertmanager-config-slack

 

[Prometheus]Prometheus Slack Alert 연동하기

❗Custom Rules 작성이 선행되어야 하고 이후 annotaion을 slack message에서 가져다 쓴다. 2022.07.11 - [Monitoring/Prometheus] - [Prometheus](AWS)Add Custom rules to Prometheus stack with cloudwatch-exporter Slack 수신 웹 설정 메시

dewble.tistory.com

https://godekdls.github.io/Prometheus/alerting.configuration/#receiver

 

Alert Configuration

Alertmanager 설정 가이드

godekdls.github.io

https://stackoverflow.com/questions/53312007/prometheus-query-and-case-sensitivity

 

Prometheus query and case sensitivity

I have one query where I am trying to join two metrics on a label. K_Status_Value == 5 and ON(macAddr) state_details{live="True"} The label macAddr is present in both the metrics. The value of the...

stackoverflow.com

https://stackoverflow.com/questions/67628163/alertmanager-different-interval-for-different-alert-rules

 

Alertmanager, different interval for different alert rules

I'm using alertmanager to get alerts for prometheus metrics, I have different alert rules for different metrics, is it possible to set different interval for each alert rules, for example for metri...

stackoverflow.com

https://github.com/prometheus/alertmanager/blob/main/doc/examples/simple.yml

https://prometheus.io/docs/alerting/latest/configuration/

 

Configuration | Prometheus

An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.

prometheus.io

 

728x90
댓글