自己想做个网站需要多少钱,wordpress 的前端框架,网上购物系统介绍,大连网站运营制作方案这里要求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环境}