Coder Social home page Coder Social logo

newrelic-agent-haproxy's Introduction

Monitoring pluging Haproxy python

This plugin allows you to monitor your HAproxy loadbalancer. You can see the state of your frontend (servers loadbalanced) and backend (HAproxy itself)

Requirements

  • New relic account, find our plugin in the plugin central
  • Python 2.7 with the python lib requests installed ( pip install requests // find the library directly into the OS's official repository // build it from the sources : http://www.python-requests.org/)
    • Reports of it working on Python 2.6.6, however your mileage may vary and this is not supported.

Installation

  1. Create the newrelic conf directory if it is not created yet

    mkdir /etc/newrelic
  2. Copy the config file into this directory

    cp agent-a0labs.cfg /etc/newrelic/
  3. If you didn't install pip on your system yet, install it first.

    # In Ubuntu
    apt-get install python-pip
  4. The python requests library is required:

    pip install requests
    

Configuration

Fill the informations in the cfg file:

  • License Key
  • URL to access the stat CSV Haproxy's file
  • user and password Optional:
  • hostname if you want to customize your hostname in newrelic GUI.
  • enable/disable logs and specify the directory

RUN

newrelic-haproxy-agent -c haproxy-agent.cfg

Daemonize

There are a few ways to be sure the plugin remains running as a Daemon or service, some are better than others - but each should be selected based on your need.

  • supervisord
  • use a nohup to launch it in background an detach it when you'll quit the terminal

newrelic-agent-haproxy's People

Contributors

kargnas avatar ybriffa avatar

Watchers

 avatar  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.