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环境'}
相关推荐
a***813911 小时前
SpringBoot集成Prometheus
spring boot·后端·prometheus
java_logo11 小时前
Prometheus Docker 容器化部署指南
运维·人工智能·docker·容器·prometheus·ai编程
x***440113 小时前
【prometheus】监控MySQL并实现可视化
数据库·mysql·prometheus
BD_Marathon14 小时前
【Zookeeper】Zookeeper内部的数据模型
linux·分布式·zookeeper
w***954918 小时前
【prometheus】Pushgateway安装和使用
prometheus
无心水20 小时前
【分布式利器:分布式ID】6、中间件方案:Redis/ZooKeeper分布式ID实现
redis·分布式·zookeeper·中间件·分库分表·分布式id·分布式利器
BD_Marathon1 天前
【Zookeeper】搭建Zookeeper服务器
linux·服务器·zookeeper
渣渣盟2 天前
Zookeeper分布式协调服务全解析
分布式·zookeeper·debian
BD_Marathon2 天前
【Zookeeper】CAP理论——BASE定理及ZK追求的一致性
分布式·zookeeper·云原生
s***35302 天前
SpringBoot集成Prometheus
spring boot·后端·prometheus