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环境'}
相关推荐
螺蛳粉 螺蛳粉7 小时前
CDH第七篇:CDH 集成 Kafka 实战:CSD + Parcel 组合拳,先装 ZooKeeper 是铁律
物联网·zookeeper·kafka·消息队列·parcel·cdh集成·csd
tianyuanwo3 天前
Prometheus 服务部署指南:从架构原理到生产级落地
架构·prometheus
看浪的路人6 天前
第8讲:记忆系统的监控与运维——Prometheus 指标、Grafana 面板与告警体系
运维·grafana·prometheus
爬也要爬着前进7 天前
Prometheus通过Nginx-vts-exporter模块监控nginx服务
运维·nginx·prometheus
Crayon Lin8 天前
Prometheus
prometheus
川石课堂软件测试10 天前
JMeter异步接口测试实战
数据库·python·jmeter·mysql·kubernetes·测试用例·prometheus
逃逸线LOF13 天前
Cloud服务注册中心异同点对比Nacos|Eureka|zookeeper|consul
zookeeper·eureka·consul
lbb 小魔仙13 天前
Redis运行状态总靠手动查?我用redis_exporter+Prometheus把指标、告警和远程抓取全接起来了
redis·bootstrap·prometheus
程序员-Benothing13 天前
Linux系统监控工具全家桶:sar、dstat、glances、Prometheus
linux·运维·prometheus
wzq11_66614 天前
Prometheus监控——云原生与非云原生监控
云原生·prometheus