newrelic / nri-zookeeper

New Relic On Host Integration for Apache Zookeeper
Apache License 2.0
1 stars 10 forks source link

zookeper integration doesn't report metrics #10

Open sv7-harun opened 3 years ago

sv7-harun commented 3 years ago

I am trying to use NewRelic zookeper integration (https://github.com/newrelic/nri-zookeeper). Thank you for documenting on how to implement the integration, I have followed the procedure which is very simple and I see the integration has successful as per the newrelic logs. However, I am having hard time in listingthe metrics in newRelic GUI.

Following log message confirmed the integration is successful:

newrelic-infra-service" level=info msg="Integration health check finished with success"

Config file: cat /etc/newrelic-infra/integrations.d/zookeeper-config.yml integration_name: com.newrelic.zookeeper

instances:

Validation: echo mntr | nc localhost 2181 zk_version 3.4.10-39d3a4f269333c922e***, built on 03/23/2017 10:13 GMT zk_avg_latency 0 zk_max_latency 40 zk_min_latency 0 zk_packets_received 1623870 zk_packets_sent 1623872 zk_num_alive_connections 1 zk_outstanding_requests 0 zk_server_state follower zk_znode_count 1352 zk_watch_count 0 zk_ephemerals_count 73 zk_approximate_data_size 4681445 zk_open_file_descriptor_count 31 zk_max_file_descriptor_count 4096

I have referred below github issue and not found any solution. https://github.com/newrelic/nri-zookeeper/issues/9

CarvalhoRodrigo commented 3 years ago

I have the same question.

CarvalhoRodrigo commented 3 years ago

@sv7-harun Got to Browse data > Events. You can find the Zookeeper in Event type.

spippari commented 3 years ago

Hello,

I have did all the steps which provided in below link but am not able to validate metrics with echo mntr | nc localhost 2181 command .Where can i find the error to not show the metrics ? do we have any log in EC2 ? Golang installation is mandatory to get the metrics ?

Can you please help me to findout the issue.

https://github.com/newrelic/nri-zookeeper

Thanks Srikanth.

CarvalhoRodrigo commented 3 years ago

You need to configure which four-letter-words commands you want to enable in ZooKeeper.

(Java system property: zookeeper.4lw.commands.whitelist)

New in 3.4.10: This property contains a list of comma separated Four Letter Words commands. It is introduced to provide fine grained control over the set of commands ZooKeeper can execute, so users can turn off certain commands if necessary. By default it contains all supported four letter word commands except "wchp" and "wchc", if the property is not specified. If the property is specified, then only commands listed in the whitelist are enabled.

Here's an example of the configuration that enables stat, ruok, conf, and isro command while disabling the rest of Four Letter Words command:

                4lw.commands.whitelist=stat, ruok, conf, isro

Users can also use asterisk option so they don't have to include every command one by one in the list. As an example, this will enable all four letter word commands:

                4lw.commands.whitelist=*

Golang installation is mandatory to get the metrics ? No.

Hello,

I have did all the steps which provided in below link but am not able to validate metrics with echo mntr | nc localhost 2181 command .Where can i find the error to not show the metrics ? do we have any log in EC2 ? Golang installation is mandatory to get the metrics ?

Can you please help me to findout the issue.

https://github.com/newrelic/nri-zookeeper

Thanks Srikanth.