In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Https://prometheus.io/download/
1. Schematic diagram
two。 Installation
Tar xf alertmanager-0.19.0.linux-amd64.tar.gz-C / usr/local/alertmanagercd / usr/local/alertmanager modify the configuration: [root@zabbix-proxy alertmanager] # cat alertmanager.yml global: resolve_timeout: 5m smtp_smarthost: 'smtp.163.com:25' smtp_from:' ww673004768@163.com' smtp_auth_username: 'ww673004768@163.com' smtp_auth_password:' 123456 'smtp_require_tls: Falseroute: group_by: ['alertname'] group_wait: 10s group_interval: 10s repeat_interval: 1h receiver:' email'receivers:- name: 'email' email_configs:-to:' w673004768@163.com'inhibit_rules:-source_match: severity: 'critical' target_match: severity:' warning' equal: ['alertname' 'dev',' instance'] [root@zabbix-proxy alertmanager] # verify configuration: [root@zabbix-proxy alertmanager] # / amtool check-config. / alertmanager.yml Checking'. / alertmanager.yml' SUCCESSFound:-global config-route-1 inhibit rules-1 receivers-0 templates [root@zabbix-proxy alertmanager] # pwd/usr/local/alertmanager [root@zabbix-proxy alertmanager] #
3.systemd Management alertmanager
[root@zabbix-proxy alertmanager] # cat / usr/lib/systemd/system/alertmanager.service [Unit] Description=Alertmanager After=network.target [Service] Type=simple User=rootExecStart=/usr/local/alertmanager/alertmanager-- config.file=/usr/local/alertmanager/alertmanager.yml-- storage.path=/usr/local/alertmanager/dataRestart=on-failure [Install] WantedBy=multi-user.targetYou have new mail in / var/spool/mail/root [root@zabbix-proxy alertmanager] #
4. Set up the configuration of prometheus
Vim prometheus.yml
. / promtool check config prometheus.yml verifies the configuration file and restarts
5. View alarm configuration rule
[root@zabbix-proxy rules] # cat general.yml groups:- name: general rules:-alert: InstanceDown expr: up = = 0 for: 1m labels: severity: error annotations: summary: "Instance {{$labels.instance}} down" description: "{{$labels.instance}} of job {{$labels.job}} has been down for more than 1 minutes." [root@zabbix-proxy rules] # pwd/usr/local/prometheus/rules [root@zabbix-proxy rules] #
6. test
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.