prometheus监控zookeeper方案

这里要求zookeeper版本必须达到3.6或以上,用的是官方自带的监控信息。

官方下载地址 https://zookeeper.apache.org/releases.html#download

然后在zookeeper的配置文件,比如zoo.cfg最后面加上这一段

bash 复制代码
metricsProvider.className=org.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
metricsProvider.httpPort=7000
metricsProvider.exportJvmInfo=true

比如就把7000端口暴露出来为监控用

然后在普米配置文件配置即可

bash 复制代码
- job_name: 'zookeeper-monitor'
  static_configs:
  - targets: ['x.x.x.x:7000']
     labels: { job: 'zookeeper', region: 'xxx环境'}
相关推荐
小黑_深呼吸8 小时前
k8s平台:手动部署Grafana
运维·学习·kubernetes·grafana·prometheus
佳腾_19 小时前
【分布式系统中的“瑞士军刀”_ Zookeeper】二、Zookeeper 核心功能深度剖析与技术实现细节
分布式·zookeeper·云原生·集群管理·命名服务
阿桨21 小时前
【Prometheus-OracleDB Exporter安装配置指南,开机自启】
数据库·oracle·centos·prometheus
川石教育1 天前
Prometheus使用Recoding Rules优化性能
prometheus·普罗米修斯·普罗修斯监控
yunson_Liu1 天前
prometheus手动添加k8s集群外的node-exporter监控
容器·kubernetes·prometheus
阿桨1 天前
【Prometheus-Mongodb Exporter安装配置指南,开机自启】
数据库·mongodb·prometheus
佳腾_2 天前
【分布式系统中的“瑞士军刀”_ Zookeeper】三、Zookeeper 在实际项目中的应用场景与案例分析
分布式·zookeeper·云原生
小马爱打代码2 天前
Spring Boot × K8s 监控实战-集成 Prometheus 与 Grafana
spring boot·kubernetes·prometheus
yunson_Liu2 天前
prometheus通过Endpoints自定义grafana的dashboard模块
贪心算法·grafana·prometheus
闫利朋4 天前
【基础篇】prometheus页面UI功能详解
prometheus