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环境'}
相关推荐
四方云1 天前
Kamailio + Prometheus 集成方案(含完整可执行配置)
prometheus
雨辰AI2 天前
SpringBoot3 + 人大金仓 V9 微服务监控实战|Prometheus+Grafana+SkyWalking 全链路监控
数据库·后端·微服务·grafana·prometheus·skywalking
咸鱼2.02 天前
【java入门到放弃】Zookeeper
java·zookeeper
rKWP8gKv73 天前
Java微服务性能监控:Prometheus与Grafana集成方案
java·微服务·prometheus
AIMath~3 天前
雪花算法+ZooKeeper解决方案+RPC是什么
分布式·zookeeper·云原生
江南风月3 天前
WGCLOUD如果使用SQL Server数据库推荐哪个版本
运维·网络·zabbix·运维开发·prometheus
AI木马人4 天前
8.人工智能实战:大模型服务“看起来正常却突然变慢”?Prometheus + Grafana + GPU 指标构建全链路监控体系
人工智能·grafana·prometheus
invicinble5 天前
关于搭建运维监控系统(Prometheus+Grafana)
运维·grafana·prometheus
白晨并不是很能熬夜5 天前
【RPC】第 4 篇:服务发现 — Zookeeper + 缓存容错
java·后端·程序人生·缓存·zookeeper·rpc·服务发现
星筏5 天前
深入理解分布式锁:ZooKeeper vs Redis
redis·分布式·zookeeper