Datadog API Node.JS Client.
Official Datadog API Documentation: http://docs.datadoghq.com/api/
dogapi API Docs: http://brettlangdon.github.io/node-dogapi/
dogapi does not provide any functionality to talk to a local
This library is purely an interface to the HTTP api.
If you are looking for a good Datadog StatsD library, I recommend checking out node-dogstatsd.
[sudo] npm install dogapi
git clone git://github.com/brettlangdon/node-dogapi.gitcd ./node-dogapinpm install
You will need your Datadog api key as well as an application key to use
Keys can be found at: https://app.datadoghq.com/account/settings#api
var dogapi = ;var options =api_key: "YOUR_KEY_HERE"app_key: "YOUR_KEY_HERE";dogapi;
If you are behind a proxy you need to a proxy agent. You can use the https proxy agent from http://blog.vanamco.com/proxy-requests-in-node-js/ if you like. To configure dogapi with the agent just add it to the options.
var dogapi = ;//Code fromvar HttpsProxyAgent = ;var agent =proxyHost: "MY_PROXY_HOST"proxyPort: 3128;var options =api_key: "YOUR_KEY_HERE"app_key: "YOUR_KEY_HERE"proxy_agent: agent;dogapi;
dogapi now ships with a command line interface
dogapi. To use it you
will need a
.dogapirc file which meets the standards of
The config file must contain both
app_key keys (you can find
your datadog api and app keys here
dogapi --help to see current usage documentation for the tool.
Every api method available in
dogapi is exposed via the cli tool.
We have updated major versions for this library due to a backwards incompatible change to the argument format for
var now = ;dogapimetric;dogapimetric;
var now = ;dogapimetric;dogapimetric;dogapimetric;
var now = ;var metrics =metric: "metric.name"points: now 50metric: "metric.name"points: 50;dogapimetric;
var now = ;var metrics =metric: "metric.name"points: now 50metric: "metric.name"points: 50 100metric: "metric.name"points: 50;dogapimetric;
The MIT License (MIT) Copyright (c) 2013 Brett Langdon email@example.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.