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环境'}
相关推荐
乐hh16 小时前
Hadoop 3.3.5 + Flink 1.15.3 集群完整部署手册(3节点标准版)
java·大数据·hadoop·hdfs·zookeeper·flink·yarn
**蓝桉**1 天前
Prometheus部署
prometheus
2401_840192271 天前
Prometheus
prometheus
码上淘金2 天前
避坑指南:为什么你在 `relabel_configs` 里过滤不掉指标?
运维·prometheus
码上淘金2 天前
Prometheus 瘦身指南:小白也能看懂的指标过滤与标签优化
java·算法·prometheus
A-刘晨阳2 天前
【Prometheus】Alertmanager配置钉钉告警
运维·云原生·钉钉·prometheus·监控
ldj20202 天前
安装prometheus + grafana
grafana·prometheus
weixin_399380692 天前
Prometheus(普罗米修斯)+grafana 监控Tongweb80909(by lqw)
java·grafana·prometheus
代码探秘者3 天前
【Redis】告别锁失效:RedLock 与 ZooKeeper 分布式锁原理与实战对比
java·数据结构·redis·后端·python·zookeeper·面试
程序员敲代码吗3 天前
深入解析ZooKeeper在分布式系统中的角色与挑战
linux·分布式·zookeeper