当前位置:网站首页>Prometheus complete process of configuring alertmanager
Prometheus complete process of configuring alertmanager
2022-07-28 20:46:00 【51CTO】
prometheus Configuration of
1 stay prometheus Profile add alertmanager Address
2 stay prometheus Add alarm rules to the configuration file
3 restart prometheus, Load the configuration
alertmanager Configuration of
1 alertmanager The configuration file
2 Edit the mail template file
3 restart alertmanager
Examination result
stay prometheus see

Because in alertmanager In the configuration group_by Set up alertname, By tag name alertname And the value Grouping , So these three alarm messages should be in the same group , Send with an email

notes
alertmanager Three concepts
grouping Grouping According to the tag and tag value of the alarm rule Group the same alarms , Merge multiple alarms into one notification , Avoid sudden occurrence of a large number of alarm notifications
Inhibition Inhibition When An alarm has been sent , Stop sending this alarm repeatedly trigger Other abnormal or fault alarm information , for example mysql I hung up from the Library , Alarm notification has been sent , Then the master-slave synchronization alarm information of the slave library should not be sent repeatedly
silent Silences Provides a simple mechanism , Quickly silence the alarm according to the tag , Check the matching of the incoming alarm , If the received alarm conforms to the silent configuration ,Alertmanager No alarm notification will be sent , Silence needs to be in WEB UI The interface is set to temporarily mask the specified alarm notification
The main configuration section of the configuration file
global Global configuration
template Alarm information template , You can customize email、 Template of enterprise wechat
route Upon receipt of prometheus After the alarm of , Send the alarm information to the specified address ,Alertmanager Process the incoming alarm information , Match according to the defined rules and configuration . Routing can be understood as a tree structure , Set the first route Root node , Next is the child node , After each alarm comes in , It will match from top to bottom , When the node is matched, a notification will be sent .
receiver Receiver Each receiver needs to set a globally unique name , And set one or more notification methods : mail 、 WeChat 、 Text messages, etc .
inhibit_rules Suppressor You can specify alarms that need to be ignored under specific conditions
Configuration file parameter comments
Example of multi route matching :
Reference resources :
https://awesome-prometheus-alerts.grep.to/alertmanager
https://www.cnblogs.com/hahaha111122222/p/14247590.html
边栏推荐
- JS fly into JS special effect pop-up login box
- Unity typewriter teaches you three ways
- Mongoose condition queries part of the data of the specified attribute
- [task02: SQL basic query and sorting]
- Soft raid
- Configure Windows Server + install MySQL database on the server + Remote Access database
- Seventeen year operation and maintenance veterans, ten thousand words long, speak through the code of excellent maintenance and low cost~
- [1331. Array serial number conversion]
- Anaconda creation environment
- MySQL batch update data
猜你喜欢

上海交大牵手淘宝成立媒体计算实验室:推动视频超分等关键技术发展

Three steps to teach you unity serial communication

DHCP.DNS.NFS

十七年运维老兵万字长文讲透优维低代码~

Unity gets which button (toggle) is selected under togglegroup

超大模型工程化实践打磨,百度智能云发布云原生AI 2.0方案

Music says

【服务器数据恢复】HP StorageWorks系列存储RAID5两块盘故障离线的数据恢复案例

“当你不再是程序员,很多事会脱离掌控”—— 对话全球最大独立开源公司SUSE CTO...

一文了解 Rainbond 云原生应用管理平台
随机推荐
Use of DDR3 (axi4) in Xilinx vivado (3) module packaging
一文了解 Rainbond 云原生应用管理平台
融合数据库生态:利用 EventBridge 构建 CDC 应用
Data mining (data preprocessing) -- Notes
Beautiful blue background form input box style
prometheus配置alertmanager完整过程
网络各层性能测试
太空射击第16课: 道具(Part 2)
【ADB常用命令及其用法大全(来自[醒不了的星期八]的全面总结)】
DHCP.DNS.NFS
[task02: SQL basic query and sorting]
Solutions to the environment created by Anaconda that cannot be displayed in pycharm
7/27 训练日志(位运算+后缀数组)
C reads the data in the CSV file and displays it after importing the DataTable
JS drag and drop alert pop-up plug-in
Oracle库访问很慢,是什么原因?
One article makes you understand what typescript is
7/27 training log (bit operation + suffix array)
[1331. Array serial number conversion]
LVS+KeepAlived高可用部署实战应用