【devops】win10安装prometheus + grafana 实时监控 Windows性能
1、官网
https://prometheus.io/docs/introduction/overview/
https://grafana.com/docs/grafana/latest/
https://github.com/prometheus-community/windows_exporter/
2、github
https://github.com/prometheus
https://github.com/prometheus-community/windows_exporter/
https://github.com/grafana/
3、下载prometheus
地址:https://prometheus.io/download/

解压到某盘,目录如下

修改配置文件

双击启动服务prometheus.exe

如果端口冲突,可以修改端口启动
prometheus.exe --config.file=prometheus.yml --web.listen-address=:8091 &
访问web端口, 9090, 并且可以查询相关数据

点击“Graph”查看图表

查看job状态

4、下载windows_exporter
地址:https://github.com/prometheus-community/windows_exporter/releases/download/v0.19.0/windows_exporter-0.19.0-amd64.exe
双击安装, 默认端口9182

查看数据

官网可以查看收集了哪些参数
https://github.com/prometheus-community/windows_exporter/
5、下载grafana
https://grafana.com/grafana/download

我下载的是安装包
双击安装即可,然后打开web, 默认端口3000

默认用户和密码为 admin /admin, 登录后修改

添加数据源

添加prometheus数据源

配置prometheus的url信息

点击“Dashboards”导入看板模板

点击Prometheus 2.0 Stats查看看板

可以设置刷新频率

至此,你就可以看到动态的监控看板了
当然,图表都是可以自定义的,可以自己研究下
6.配置alert告警
https://blog.51cto.com/825536458/2715978?b=totalstatistic
参考链接:
https://blog.51cto.com/825536458/2715978?b=totalstatistic
https://blog.csdn.net/lht3347/article/details/84144999

浙公网安备 33010602011771号