Skip to content

Commit

Permalink
update README now that we assume stats is at 127.0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yob committed Jan 3, 2021
1 parent 481deef commit 47eaf93
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ plugin :statsd

## Usage

Ensure you have an environment variable set that points to a statsd host, then boot your puma app as usual. Optionally you may specify a port (default is 8125).
By default the plugin assumes statsd is available at 127.0.0.1. If that's true in your environment, just start puma like normal:

```
STATSD_HOST=127.0.0.1 bundle exec puma
bundle exec puma
```

If statsd isn't on 127.0.0.1 or the port is non-standard, you can configure them using optional environment variables:

```
STATSD_HOST=127.0.0.1 STATSD_PORT=9125 bundle exec puma
```
Expand All @@ -55,7 +57,6 @@ the datadog "dogstatsd" server.
Should you be reporting the puma metrics to a dogstatsd server, you can set
tags via the following three environment variables.


#### DD_TAGS

`DD_TAGS`: Set this to a space-separated list of tags, using the
Expand Down

0 comments on commit 47eaf93

Please sign in to comment.