当前位置:网站首页>【Prometheus】5. Alertmanager alarm (incomplete)

【Prometheus】5. Alertmanager alarm (incomplete)

2022-06-24 15:36:00 Try something new for a long time

1. Deploy Alertmanager And Prometheus signal communication , And create alarm rules

Download address 1:https://github.com/prometheus/alertmanager/releases

Download address 2:https://prometheus.io/download/

  • download alertmanager wget https://github.com/prometheus/alertmanager/releases/download/v0.22.0-rc.0/alertmanager-0.22.0-rc.0.darwin-amd64.tar.gz
  • decompression tar zxvf alertmanager-0.22.0-rc.0.darwin-amd64.tar.gz
  • Modify the configuration file cd alertmanager-0.22.0-rc.0.darwin-amd64 && vim alertmanager.yml
alertmanager.yml
  • Check the configuration file ./amtool check-config alertmanager.yml
  • start-up alertmanager ./alertmanager --config.file=alertmanager.yml
  • stay prometheus Middle configuration alertmanager communicate
vim prometheus.yml
  • Create alarm rules (prometheus Under the table of contents )
vim prometheus.yml
vim rules/test.yml
  • restart prometheus systemctl restart prometheus

-----

2. Alarm status

  • Inactive: Nothing happened
  • Pending: Threshold triggered , But the alarm duration... Is not met
  • Firiing: Threshold triggered and alarm duration met , The alarm is sent to the recipient

3. Alarm allocation

A little .....

4. Alarm convergence ( grouping , Inhibition , silent )

5. Prometheus How can an alarm be triggered ?

6 . Write alarm rule cases

原网站

版权声明
本文为[Try something new for a long time]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/05/20210508223547681A.html