Our Apache ZooKeeper integration monitors the performance of your ZooKeeper clusters, helping you manage, and synchronize your distributed systems. Our Apache ZooKeeper integration gives you a pre-built dashboard that includes cluster-level and node-level metrics.
After setting up our Apache ZooKeeper integration, we give you a dashboard for your ZooKeeper metrics.
Before bringing ZooKeeper data into New Relic, you'll need to follow the infrastructure agent installation steps for the host containing your Apache ZooKeeper app.
You can integrate Apache Zookeeper with New Relic by using
NRI-Flex for Apache ZooKeeper.
Flex comes bundled with the New Relic infrastructure agent. You need to configure NRI-Flex for Apache ZooKeeper and create a flex configuration file. Follow these steps:
- Create a file named
zookeeper-config.ymlon the path below:
- for Linux,
- for windows,
C:\Program Files\New Relic\newrelic-infra\integrations.d\
- for Linux,
- Use the below snippet to update your configuration file named
integrations:- name: nri-flex# interval: 30sconfig:name: zookeeperFlexapis:- name: zookeeperevent_type: zkSamplecommands:- run: echo mntr | nc localhost 2181 ## change to your zookeeper serversplit_by: "\t" ## split by tabsnake_to_camel: truecustom_attributes:myCustomAttr: theValue ## inject your own additional custom attributes
Before you can start reading your data, use the instructions in our infrastructure agent docs to restart your infrastructure agent.
$sudo systemctl restart newrelic-infra.service
You can choose our pre-built dashboard template named
Apache ZooKeeper to monitor your Zookeeper application metrics. Follow these steps to use our pre-built dashboard template:
- From one.newrelic.com, go to the + Add data page.
- Click on Dashboards.
- In the search bar, type
- The ZooKeeper dashboard should appear. Click on it to install it.
Your Apache ZooKeeper dashboard is considered a custom dashboard and can be found in the Dashboards UI. For docs on using and editing dashboards, see our dashboard docs.
When you use the
nri-flex integration your metrics will be exported into the given
EVENT_TYPE. Here is a NRQL query to check the number of znodes in the ZooKeeper namespace with a
FROM <EVENT_TYPE>SELECT latest(zkZnodeCount)
To learn more about building NRQL queries and generating dashboards, check out these docs: