Coder Social home page Coder Social logo

lita-datadog's Introduction

lita-datadog

Build Status MIT License RubyGems :: RMuh Gem Version Coveralls Coverage Code Climate Gemnasium

A Datadog plugin for Lita.

Installation

Add lita-datadog to your Lita instance's Gemfile:

gem "lita-datadog"

Configuration

Required attributes

You will need a DataDog API key, and an application key. Go to https://app.datadoghq.com/account/settings#api for both.

Add the following variable to your Lita config file:

Lita.configure do |config|
...
  config.handlers.datadog.api_key = '_api_key_goes_here_'
  config.handlers.datadog.application_key = '_app_key_goes_here_'
...
end

Optional attributes

  • timerange (Integer) - How long in seconds a time range will be for graphs. Default: 3600
  • waittime (Integer) - How long to wait after getting a URL from Datadog to display it (sometimes the graph isn't ready yet). Default: 0

Usage

Graphs

Basic graph of the load on all of your systems:

Lita graph metric:"system.load.1{*}"

Graph of load for one specific system:

Lita graph metric:"system.load.1{host:hostname01}"

Multiple attributes plotted in one graph:

Lita graph metric:"system.load.1{*},system.load.5{*}"

Show graph, with events marked in:

Lita graph metric:"system.load.1{*}" event:"sources:sourcename"

Manipulate time range being graphed:

Lita graph metric:"system.load.1{*}" start:"2 hours ago"
Lita graph metric:"system.load.1{*}" from:"2 hours ago" to:"30 minutes ago"

Graph takes the following arguments:

metric:"<metric>"
event:"<event>"
start:"<time description>"
end:"<time description>"
from:"<time description>"
to:"<time description>"

Time descriptions are parsed by https://github.com/mojombo/chronic

License

MIT

lita-datadog's People

Contributors

directionless avatar esigler avatar

Watchers

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