个人门户网站备案,天津网站制作哪家好薇,免费网页制作的网站,平阴网络营销是什么这里要求zookeeper版本必须达到3.6或以上#xff0c;用的是官方自带的监控信息。
官方下载地址 https://zookeeper.apache.org/releases.html#download
然后在zookeeper的配置文件#xff0c;比如zoo.cfg最后面加上这一段
metricsProvider.classNameorg.apache.zookeeper.…这里要求zookeeper版本必须达到3.6或以上用的是官方自带的监控信息。
官方下载地址 https://zookeeper.apache.org/releases.html#download
然后在zookeeper的配置文件比如zoo.cfg最后面加上这一段
metricsProvider.classNameorg.apache.zookeeper.metrics.prometheus.PrometheusMetricsProvider
metricsProvider.httpPort7000
metricsProvider.exportJvmInfotrue比如就把7000端口暴露出来为监控用
然后在普米配置文件配置即可
- job_name: zookeeper-monitorstatic_configs:- targets: [x.x.x.x:7000]labels: { job: zookeeper, region: xxx环境}