1、下载
wget https://github.com/prometheus/prometheus/releases/download/v2.17.1/prometheus-2.17.1.linux-amd64.tar.gz &
2、解压
tar -xvf prometheus-2.17.1.linux-amd64.tar.gz
3、配置添加nacos
- job_name: 'nacos'
# metrics_path defaults to '/nacos/actuator/prometheus'
# scheme defaults to 'http'.
static_configs:
- targets: ['192.168.19.198:8848']
3、启动
./prometheus --config.file=prometheus.yml
4、访问
http://192.168.3.212:9090/graph
来源:oschina
链接:https://my.oschina.net/internetafei/blog/3269899