lita-datadog
Interact with Datadog (https://www.datadoghq.com/).
Installation
Add lita-datadog to your Lita instance's Gemfile:
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