官方文档:https://nacos.io/zh-cn/docs/monitor-guide.html
配置application.properties文件,暴露metrics数据
management.endpoints.web.exposure.include=*
访问{ip}:8848/nacos/actuator/prometheus
,看是否能访问到metrics数据
修改配置文件prometheus.yml采集Nacos metrics数据
- job_name: 'nacos'
metrics_path: '/nacos/actuator/prometheus'
static_configs:
- targets: ['172.16.0.75:8848','172.16.0.76:8848','172.16.0.235:8848']
https://grafana.com/grafana/dashboards/13221
面板ID:13221
手机扫一扫
移动阅读更方便
你可能感兴趣的文章