Giter Site home page Giter Site logo

err-newrelic's Introduction

err-newrelic

This a plugin is to get some graphs from your newrelic account. This was specifically developed for in house use, we have three newrelic application ids each representing different regions. Needs to passed using the partial configuration mechanism described here.

NOTE: This is tested on HipChat

Installation

!repos install https://github.com/samof76/err-newrelic

This will install newrelic on plugin. See its help,

!help Newrelic
Newrelic
This is a Newrelic Chatbot plugin to throw up graphs
    for the response times for given time period
• !newrelic get app response time - usage: newrelic_get_app_response_time [-h] [--region REGION]
• !newrelic get db response time - usage: newrelic_get_db_response_time [-h] [--region REGION]
• !newrelic get error rate - usage: newrelic_get_error_rate [-h] [--region REGION]
• !newrelic test - (undocumented)

Since this uses python Bokeh package, you would need phantomjs(and hence nodejs) to export graphs as png.

npm install -g phantomjs-prebuilt

Plugin Configuration

Since the newrelic keys and app ids are a secret, we use partial configuration mechanism to configure Newrelic keys.

!plugin config Newrelic {'app_ids':{'us-east-1': 111111111 , 'eu-west-1': 111111111, 'eu-central-1': 11111111}, 'newrelic_token':'1791fc61738c8521876d74'}

NOTE: us-east-1 etc., are app ids of that region.

err-newrelic's People

Contributors

samof76 avatar

Stargazers

 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.