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环境'}
相关推荐
Jackyzhe9 小时前
从零学习Kafka:ZooKeeper vs KRaft
学习·zookeeper·kafka
小江的记录本13 小时前
【分布式】分布式核心组件——分布式锁:Redis/ZooKeeper/etcd 实现方案(附全方位对比表)、优缺点、Redlock、时钟回拨问题
java·网络·redis·分布式·后端·zookeeper·架构
曲幽1 天前
FastAPI服务半夜又挂了?先别急着重启,查查你的数据库连接池“池子”是不是漏了
python·prometheus·fastapi·web·async·sqlalchemy·connection·pool
红星照耀华夏1 天前
分布式锁深度解构:从 Redis 到 ZooKeeper,一场正确性与性能的博弈
redis·zookeeper·etcd·分布式锁
Dontla3 天前
高基数(High Cardinality)问题介绍(Prometheus、高基数字段、低基数字段)
前端·数据库·prometheus
川石课堂软件测试3 天前
requests接口自动化测试
数据库·python·功能测试·测试工具·单元测试·grafana·prometheus
没有口袋啦3 天前
基于 Prometheus + Grafana 的云原生立体化监控体系构建
grafana·prometheus
Dontla4 天前
Prometheus介绍(开源系统监控与告警工具)(时间序列数据库TSDB、标签化label-based多维分析、Pull模型、PromQL查询语言)
数据库·开源·prometheus
大罗LuoSir4 天前
分布式微服务全貌了解-整体架构、特征和需关注解决的问题
java·缓存·微服务·zookeeper·容器·服务发现·负载均衡