部署Nacos_export监控nacos
Nacos_export配置
1.编辑nacos安装路径下的application.properties配置文件,添加如下配置
management.endpoints.web.exposure.include=*
重启nacos
2.访问172.16.10.205:8848/nacos/actuator/prometheus查看是否能访问到metrics数据
Prometheus配置
在 prometheus.yml 中添加如下配置:
scrape_configs:
- job_name: 'nacos_export'
metrics_path: '/nacos/actuator/prometheus'
static_configs:
- targets: ['172.16.10.205:8848']
重启Prometheus