Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add datadog API host to docs #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,21 @@ A plugin to connect etsy's statsD to Datadog

$ cd /path/to/statsd-dir
$ npm install statsd-datadog-backend

## Configuration

```js
datadogApiKey: "your_api_key" // You can get it from this page: https://app.datadoghq.com/account/settings#api
datadogPrefix: "your_prefix" // Your metrics will be prefixed by this prefix
datadogTags: ["your:tag", "another:tag"] // Your metrics will include these tags
datadogApiKey: "your_api_key"; // You can get it from this page: https://app.datadoghq.com/account/settings#api
datadogApiHost: "https://app.datadoghq.com" // Could also be "https://app.datadoghq.eu" for Europe.
datadogPrefix: "your_prefix"; // Your metrics will be prefixed by this prefix
datadogApiHost: "https://app.datadoghq.com";
datadogTags: ["your:tag", "another:tag"]; // Your metrics will include these tags
```

## How to enable

Add statsd-datadog-backend to your list of statsd backends:

```js
backends: ["statsd-datadog-backend"]
backends: ["statsd-datadog-backend"];
```

1 change: 1 addition & 0 deletions lib/datadog.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* This backend supports the following config options:
*
* datadogApiKey: Your DataDog API key
* datadogApiHost: Your DataDog API host
* datadogPrefix: A global prefix for all metrics
* datadogTags: A global set of tags for all metrics
*/
Expand Down