Git Product home page Git Product logo

newrelic_activemq's Introduction

EasyTaxi ActiveMQ monitoring

  • This project is unsupported * - use it as you want, but know that we have no guarantee of support in case of any error. As all we do, we really want to do our best, and will try to help on any problem, but we give you no guarantee of time, and solutions.

What is it?

This is a Newrelic plugin used to monitor ActiveMQ. The main idea is to parse ActiveMQ stats (/admin/xml/queues.jsp) and send them to Newrelic.

Currently, we send the following metrics:

  • Total number of consumers
  • Total queue size
  • Jobs enqueued in the last minute
  • Jobs dequeued in the last minute

Installation

Simply download the latest release and uncompress it in the desired folder. Ex:

$ wget https://github.com/easytaxibr/newrelic_activemq/archive/0.0.2.tar.gz
$ tar -zxvf 0.0.2.tar.gz -C /opt
$ ln -sf /opt/newrelic_activemq-0.0.2/ /opt/newrelic_activemq
$ cd /opt/newrelic_activemq && bundle install

Configuration

To configure the project, just copy the config/newrelic_plugin.yml.sample to config/newrelic_plugin.yml:

$ cp config/newrelic_plugin.yml.sample config/newrelic_plugin.yml

After that configure the queues you want to monitor. For a single queue:

  activemq:
    queue_name: lets_monitor
    activemq_url: https://activemq-server.yourdomain.com:8161
    activemq_user: username
    activemq_password: password

For multiple queues, you can simple use an array:

  activemq:
    -
      queue_name: lets_monitor
      activemq_url: https://activemq-server.yourdomain.com:8161
      activemq_user: username
      activemq_password: password
    -
      queue_name: lets_monitor_other_queue
      activemq_url: https://activemq-server.yourdomain.com:8161
      activemq_user: username
      activemq_password: password

Monitor

In the plugin installation folder run:

$ ./newrelic_activemq.rb

We strongly encourage you to create a startup script. We provide an example under extra/newrelic_activemq-upstart for Debian. We appreciate a PR with a sample script of your own distro.

Can you show me it in action?

Yes, sure.

newrelic_activemq's People

Contributors

stupied4ever avatar zlu avatar guilhermef avatar

Watchers

James Cloos 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.