prometheus监控nacos

prometheus监控minio

  • 环境列表
  • 检查metrics数据
  • prometheus-job配置
  • import dashboard
  • granafa-dashboard数据展示

项目使用了nacos,所以记录一下打开prometheus-nacos监控的方式。

nacos官方prometheus监控手册:https://nacos.io/zh-cn/docs/monitor-guide.html

环境列表

  1. nacos版本:2.0.2
  2. prometheus版本:2.37.0
  3. granafa版本:9.0.4
  4. nacos-dashboard-ID:13221

检查metrics数据

地址:http://IP:8848/nacos/actuator/prometheus
prometheus监控nacos_第1张图片

prometheus-job配置

新增job配置,配置labels可以快速选择到对应的nacos集群

prometheus中的配置

  - job_name: 'nocas1072'
    metrics_path: '/nacos/actuator/prometheus'
    static_configs:
    - targets: ['192.168.107.2:8848']
      labels:
        instance: nacos1072

import dashboard

导入13221 nacos专用dashboard后,配置variables,配置好之后,当前面板就只会展示nacos1072这个实例的监控信息了。

prometheus监控nacos_第2张图片

granafa-dashboard数据展示

prometheus监控nacos_第3张图片

你可能感兴趣的:(prometheus,nacos,监控,prometheus)