Git Product home page Git Product logo

nri-zookeeper's Introduction

New Relic Infrastructure Integration for Zookeeper

New Relic Infrastructure Integration for Zookeeper captures critical performance metrics reported by Zookeeper nodes.

Disclaimer

New Relic has open-sourced this integration to enable monitoring of this technology. This integration is provided AS-IS WITHOUT WARRANTY OR SUPPORT, although you can report issues and contribute to this integration via GitHub. Support for this integration is available with an Expert Services subscription.

Requirements

  • Apache Zookeeper 3.4 or above

Installation

  • Download an archive file for the Zookeeper Integration
  • Place the executables under bin directory and the definition file zookeeper-definition.yml in /var/db/newrelic-infra/newrelic-integrations
  • Set execution permissions for the binary files nr-zookeeper
  • Place the integration configuration file zookeeper-config.yml.sample in /etc/newrelic-infra/integrations.d and update its values.
  • Verify the path to nc utility in the zookeeper-config.yml
    arguments:
      host: localhost
      port: 2181
      cmd: /bin/nc  <-- this PATH varies per OS

Usage

This is the description about how to run the Zookeeper Integration with New Relic Infrastructure agent, so it is required to have the agent installed (see agent installation).

In order to use the Zookeeper Integration it is required to configure zookeeper-config.yml.sample file. Firstly, rename the file to zookeeper-config.yml. Then, depending on your needs, specify all instances that you want to monitor. Once this is done, restart the Infrastructure agent.

You can view your data in Insights by creating your own custom NRQL queries. To do so use ZookeeperSample event types.

To validate the metrics collected from Zookeeper, you can run the command below.

$ echo mntr | nc localhost 2181
zk_version	3.4.10-39d3a4f269333c922ed3db283be479f9deacaa0f, built on 03/23/2017 10:13 GMT
zk_avg_latency	0
zk_max_latency	0
zk_min_latency	0
zk_packets_received	14
zk_packets_sent	13
zk_num_alive_connections	1
zk_outstanding_requests	0
zk_server_state	standalone
zk_znode_count	4
zk_watch_count	0
zk_ephemerals_count	0
zk_approximate_data_size	27
zk_open_file_descriptor_count	110
zk_max_file_descriptor_count	1048576

Integration development usage

Assuming that you have source code you can build and run the Zookeeper Integration locally.

  • Go to directory of the Zookeeper Integration and build it
$ make
  • The command above will execute tests for the Zookeeper Integration and build an executable file called nr-zookeeper in bin directory.
$ ./bin/nr-zookeeper -port <zookeeper port>
  • If you want to know more about usage of ./bin/nr-zookeeper check
$ ./bin/nr-zookeeper --help

For managing external dependencies govendor tool is used. It is required to lock all external dependencies to specific version (if possible) into vendor directory.

nri-zookeeper's People

Contributors

psomareddy avatar sschwartzman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.