A node module for interacting with the DataDog API.
JavaScript
Switch branches/tags
Nothing to show
Clone or download
#2 Compare This branch is 3 commits ahead of Singly:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
README.md
index.js
package.json

README.md

node-datadog

A node module for interacting with the DataDog API.

Sending Events

var DataDog = require('datadog');

var dd = new DataDog('API_KEY', 'APPLICATION_KEY');

dd.postEvent({
   title: 'Events, events, events',
   text: 'Testing events.'
});

Sending Counters

var DataDog = require('datadog');

var dd = new DataDog('API_KEY', 'APPLICATION_KEY');

dd.postSeries({
    "series": [{
        "metric": "test.ddagent.series",
        "points": [
            [Date.now()/1000, 1]
        ],
        "type": "counter",
        "tags": ["test", "test-series"]
    }]
})

Sending Gauges

var DataDog = require('datadog');

var dd = new DataDog('API_KEY', 'APPLICATION_KEY');

dd.postSeries({
    "series": [{
        "metric": "test.ddagent.series",
        "points": [
            [Date.now()/1000, 1]
        ],
        "type": "gauge",
        "tags": ["test", "test-series"]
    }]
})