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环境'}
相关推荐
成为你的宁宁2 小时前
【Prometheus Operator 监控 K8S集群的Calico 与 Ingress-Nginx 组件】
kubernetes·prometheus
Adorable老犀牛4 小时前
Prometheus 常用告警规则 rules.yml
开发语言·prometheus·exporter·nodeexpoeter
Jinkxs13 小时前
Prometheus - 监控微服务:Spring Boot 应用指标暴露与监控
spring boot·微服务·prometheus
XWalnut16 小时前
Zookeeper入门
分布式·zookeeper
云烟成雨TD18 小时前
Spring AI 1.x 系列【50】可观测性:接入 Prometheus + Grafana
人工智能·spring·prometheus
YDS8291 天前
DeepSeek RAG&MCP + Agent智能体项目 —— 集成ELK日志管理系统和Prometheus监控系统
java·elk·ai·springboot·agent·prometheus·deepseek
暮云星影2 天前
个人总结 搭建Docker监控
docker·容器·grafana·prometheus
成为你的宁宁4 天前
【基于 Prometheus Operator 监控 K8s控制器、调度器、代理组件】
kubernetes·prometheus
溜达的大象5 天前
服务器挂了等用户报障?我用Prometheus搭了一套监控告警,服务器出状况第一时间通知我
服务器·php·prometheus
tudoSearcher5 天前
日志、指标、链路追踪:可观测性三支柱深度解析
运维·服务器·网络·prometheus