Prometheus+Grafana+Alertmanager(邮件报警+钉钉报警)全网最全图文教程

这是一篇关于如何设置全面监控系统的详细教程,涵盖了从环境准备到Prometheus的安装,再到node-exporter的配置,以及利用Prometheus的自动发现功能。文章还深入介绍了如何通过Alertmanager实现邮件和钉钉报警,以及如何使用Grafana展示图表和导入dashboard模板。
摘要由CSDN通过智能技术生成

一.准备环境

主机名称 IP地址 硬件要求 服务部署
master 10.0.0.12 1核1G prometheus+grfana
node1 10.0.0.13 1核1G node-exporte
node2 10.0.0.14 1核1G node-exporte

二.安装prometheus

#安装prometheus
prometheus官网:https://prometheus.io/download/
我们下载prometheus-2.23.0.linux-amd64.tar.gz即可
#解压软件包
tar xf prometheus-2.23.0.linux-amd64.tar.gz
#打开解压软件包的目录
cd prometheus-2.23.0.linux-amd64/
#修改配置文件
vim prometheus.yml
修改最后
  - job_name: 'prometheus'
    static_configs:
    - targets: ['localhost:9090']
  - job_name: 'node-exporte'
    static_configs:
    - targets: ['10.0.0.13:9100','10.0.0.14:100']
#启动软件  加& 等于后台运行   
./prometheus --config.file="prometheus.yml" &
#浏览器输入10.0.0.12:9090即可

三.安装node-exporte

#安装node-exporte(node1,node2)
prometheus官网:https://prometheus.io/download/
我们下载node_exporter-1.1.1.linux-amd64.tar.gz即可
https://prometheus.io/download/#node_exporter
#解压软件包
tar xf node_exporter-1.1.
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值