grafana + prometheus + node_expo

2020-04-27  本文已影响0人  一点温柔

一、安装prometheus

https://www.jianshu.com/p/854580103178

二、安装node_exporter

https://www.jianshu.com/p/512be4626ac6

三、安装grafana

https://www.jianshu.com/p/cc50577598e4

四、添加数据源

a、在Home Dashboard页面点击Add data source按钮.

b、填写对应信息:

name(source名称): prometheus  - (自定义命名)

type(source类型): 下拉选项中选择prometheus

url(source地址): http://xxx.xxx.xx.xxx:9090 - (注意:地址最好是公网ip)

Access: 选择server(default)

最后点击Save & Test

五、在左上角点击 + 号,添加一个folder

六、在添加好的folder中,添加panel即可

image.png

六、常用的监控实例

监控服务器资源(cpu使用率、内存使用率等)
https://www.jianshu.com/p/2ddef78bd23a

上一篇 下一篇

猜你喜欢

热点阅读