使用Prometheus和Grafana監控nacos集群


官方文檔:https://nacos.io/zh-cn/docs/monitor-guide.html

按照部署文檔搭建好Nacos集群

配置application.properties文件,暴露metrics數據

management.endpoints.web.exposure.include=*

訪問{ip}:8848/nacos/actuator/prometheus,看是否能訪問到metrics數據

搭建prometheus采集Nacos 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']

Grafana

https://grafana.com/grafana/dashboards/13221

面板ID:13221


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM