An AppDynamics extension to be used with a stand alone Java machine agent to provide metrics for Zookeeper servers.
- Before the extension is installed, the prerequisites mentioned here need to be met. Please do not proceed with the extension installation if the specified prerequisites are not met.
- The Extension also needs a zookeeper server to be installed.
- The extension needs to be able to connect to Zookeeper in order to collect and send metrics. To do this, you will have to either establish a remote connection in between the extension and the product, or have an agent on the same machine running the product in order for the extension to collect and send the metrics.
- Run "mvn clean install" and find the ZookeeperMonitor.zip file in the "target" folder. You can also download the ZookeeperMonitor.zip from AppDynamics Exchange.
- Please place the extension in the "monitors" directory of your Machine Agent installation directory. Do not place the extension in the "extensions" directory of your Machine Agent installation directory.
-
Configure the zookeeper instances by editing the config.yml file in
<MACHINE_AGENT_HOME>/monitors/ZookeeperMonitor/
.servers: - host: "localhost" port: 2181 name: "zh1"
Provide zookeeper host, port and display name for your zookeeper server.
-
You can configure multiple zookeeper servers like below:
servers: - host: "localhost" port: 2181 name: "zh1" - host: "localhost" port: 2182 name: "zh2"
Please make sure to provide unique display names if multiple servers are configured.
Always include one thread per server + 1.
For example, if you have 4 zookeeper servers configured, then number of threads required are 5 (4 thread per server + 1 to run main task)
Please copy all the contents of the config.yml file and go to http://www.yamllint.com/ . On reaching the website, paste the contents and press the “Go” button on the bottom left.
You can add/remove metrics of your choice by modifying the provided metrics.xml file. Please look at how the metrics have been defined and follow the same convention when adding new metrics. You do have the ability to also chose your Rollup types as well as for each metric as well as set an alias name that you would like displayed on the metric browser.
The list of metrics provided is self-configurable. The metrics are extracted by running the commands listed in the Zookeeper Documentation. The commands and the fields to be extracted can be configured in the config.yml file mentioned below.
We also send "ruok" with a value 0 when an error occurs and 1 when the metrics collection is successful.
We support cluster level metrics only if each node in the cluster has a separate machine agent installed on it. There are two configurations required for this setup
-
Make sure that nodes belonging to the same cluster has the same in the <MACHINE_AGENT_HOME>/conf/controller-info.xml, we can gather cluster level metrics. The tier-name here should be your cluster name.
-
Make sure that in every node in the cluster, the <MACHINE_AGENT_HOME>/monitors/ZookeeperMonitor/config.yml should emit the same metric path.
Workbench is an inbuilt feature provided with each extension in order to assist you to fine tune the extension setup before you actually deploy it on the controller. Please review the following document on How to use the Extensions WorkBench.
Please follow the steps listed in this troubleshooting-document in order to troubleshoot your issue. These are a set of common issues that customers might have faced during the installation of the extension. If these don't solve your issue, please follow the last step on the troubleshooting-document to contact the support team.
If after going through the Troubleshooting Document you have not been able to get your extension working, please file a ticket with the following information:
- Stop the running machine agent .
- Delete all existing logs under /logs .
- Please enable debug logging by editing the file /conf/logging/log4j.xml. Change the level value of the following elements to debug.
<logger name="com.singularity"> <logger name="com.appdynamics">
- Start the machine agent and please let it run for 10 mins. Then zip and upload all the logs in the directory /logs/. Attach the zipped /conf/ directory.
- Attach the zipped /monitors/ExtensionFolderYouAreHavingIssuesWith directory .
For any support related questions, you can also contact [email protected].
Always feel free to fork and contribute any changes directly via GitHub.
Name | Version |
---|---|
Extension Version | 1.1.1 |
Controller Compatibility | 4.5 or Later |
Machine Agent Version | 4.5.13+ |
Product Tested on | 3.4.14 |
Last Update | 06/01/2021 |