文档:
https://prometheus.fuckcloudnative.io/
下载:
https://prometheus.io/download/
安装prometheus:
[root@VM1 ~]# tar xvfz prometheus-2.21.0.linux-amd64.tar.gz
[root@VM1 ~]# cd prometheus-2.21.0.linux-amd64/
[root@VM1 prometheus-2.21.0.linux-amd64]# ./prometheus --config.file=prometheus.yml
默认会监控prometheus服务本身。
访问地址:
http://192.168.48.51:9090/
使用node_exporter监控linux:
https://github.com/prometheus/node_exporter
[root@VM1 node_exporter]# nohup ./nod