AH-DATADOG-PLUGIN
Install
npm install ah-datadog-plugin
./node_modules/.bin/actionhero link --name ah-datadog-plugin
We use the awesome datadog-metrics
package. Note: while we might be instructing the package to send data very often, it will actually buffer the data and send it in batches. A datadog-agent is not required, we talk directly to the datadog API!
Requirements
- Ensure that
DATADOG_API_KEY
is set in your Environment (this is the only config)
Data
All metrics are prefixed automatically by appName
and host
where:
let appName = apiconfiggeneralserverName + '-' + apienv;let host = apiid;
Memory
We will report the following every 5 seconds:
var memUsage = process;datadog;datadog;datadog;
Resque:
We will report the following (queue lengths) every 5 seconds from resque/Tasks
datadog; // 'q' is the name of the queuedatadog;
Actions
We will report the following at the end of every action
datadog;datadog;
We will report the following every minute
datadog;
Tasks
We will report the following at the end of every task
datadog;datadog;
We will report the following every minute
datadog;