Add Zookeeper Jolokia2 example config (#4659)
This commit is contained in:
parent
c0485a50ee
commit
e85a9e0956
|
@ -181,5 +181,6 @@ Both `jolokia2_agent` and `jolokia2_proxy` plugins support default configuration
|
||||||
- [Kafka](/plugins/inputs/jolokia2/examples/kafka.conf)
|
- [Kafka](/plugins/inputs/jolokia2/examples/kafka.conf)
|
||||||
- [Tomcat](/plugins/inputs/jolokia2/examples/tomcat.conf)
|
- [Tomcat](/plugins/inputs/jolokia2/examples/tomcat.conf)
|
||||||
- [Weblogic](/plugins/inputs/jolokia2/examples/weblogic.conf)
|
- [Weblogic](/plugins/inputs/jolokia2/examples/weblogic.conf)
|
||||||
|
- [ZooKeeper](/plugins/inputs/jolokia2/examples/zookeeper.conf)
|
||||||
|
|
||||||
Please help improve this list and contribute new configuration files by opening an issue or pull request.
|
Please help improve this list and contribute new configuration files by opening an issue or pull request.
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
[[inputs.jolokia2_agent]]
|
||||||
|
urls = ["http://localhost:8080/jolokia"]
|
||||||
|
name_prefix = "zk_"
|
||||||
|
|
||||||
|
[[inputs.jolokia2_agent.metrics]]
|
||||||
|
name = "quorum"
|
||||||
|
mbean = "org.apache.ZooKeeperService:name0=*"
|
||||||
|
tag_keys = ["name0"]
|
||||||
|
|
||||||
|
[[inputs.jolokia2_agent.metrics]]
|
||||||
|
name = "leader"
|
||||||
|
mbean = "org.apache.ZooKeeperService:name0=*,name1=*,name2=Leader"
|
||||||
|
tag_keys = ["name1"]
|
||||||
|
|
||||||
|
[[inputs.jolokia2_agent.metrics]]
|
||||||
|
name = "follower"
|
||||||
|
mbean = "org.apache.ZooKeeperService:name0=*,name1=*,name2=Follower"
|
||||||
|
tag_keys = ["name1"]
|
Loading…
Reference in New Issue