Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zookeper integration doesn't report metrics #10

Open
sv7-harun opened this issue Dec 1, 2020 · 4 comments
Open

zookeper integration doesn't report metrics #10

sv7-harun opened this issue Dec 1, 2020 · 4 comments
Labels
question Further information is requested

Comments

@sv7-harun
Copy link

sv7-harun commented Dec 1, 2020

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:

  • name: PROD-Zookeeper-3
    command: metrics
    arguments:
    host: <host-private-ip/localhost>
    port: 2181
    cmd: /bin/nc
    labels:
    role: zookeeper

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.
#9

@nadiamoe nadiamoe added the question Further information is requested label Mar 10, 2021
@CarvalhoRodrigo
Copy link

I have the same question.

@CarvalhoRodrigo
Copy link

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

@spippari
Copy link

spippari commented Apr 9, 2021

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
Copy link

CarvalhoRodrigo commented Apr 9, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants