Sha256: c71efa48bdd23fa7ebb752a006402a1f67a669b0c769bd68ea1b3c00d5429b3d

Contents?: true

Size: 1.76 KB

Versions: 1

Compression:

Stored size: 1.76 KB

Contents

# lita-datadog

[![Build Status](https://travis-ci.org/esigler/lita-datadog.png?branch=master)](https://travis-ci.org/esigler/lita-datadog)
[![Code Climate](https://codeclimate.com/github/esigler/lita-datadog.png)](https://codeclimate.com/github/esigler/lita-datadog)
[![Coverage Status](https://coveralls.io/repos/esigler/lita-datadog/badge.png)](https://coveralls.io/r/esigler/lita-datadog)

Interact with Datadog (https://www.datadoghq.com/).

## Installation

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

``` ruby
gem "lita-datadog"
```

## Configuration

### Required attributes

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

* `api_key` (String) - Your DataDog API key. Default: `nil`
* `application_key` (String) - Your DataDog application key.  Default: `nil`

### 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: `1`

### Example

## Usage

```
Lita graph metric:"system.load.1{*}"
Lita graph metric:"system.load.1{host:hostname01}"
Lita graph metric:"system.load.1{*},system.load.5{*}"
Lita graph metric:"system.load.1{*}" event:"sources:sourcename"
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](http://opensource.org/licenses/MIT)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lita-datadog-0.2.0 README.md