|
|
7 years ago | |
|---|---|---|
| vendor/github.com/datadog/datadog-go | 9 years ago | |
| README.md | 9 years ago | |
| doc.go | 9 years ago | |
| handler.go | 7 years ago | |
| setup.go | 7 years ago | |
A Caddy middleware plugin for reporting metrics to Datadog.
Coming soon
dogstatsd [{host:port} [samplerate]]
dogstatsd {
host {host:port}
samplerate {samplerate}
namespace {namespace}
tags {name:value} [{name:value}...]
}
host - the host:port where dogstatsd metrics should be sent - default: 127.0.0.1:8125samplerate - a float indicating the sample rate of requests to record metrics for
samplerate of 0.5 means metrics will be emitted for only half of the requestsnamespace - an optional namespace to prepend to each metric emitted - by default there is none
namespace of my_app will yield my_app.caddy.response.time as a metrictags - an optional list of global tags to set for this server - by default there are none
env:production, app:my_appdogstatsd {
samplerate 0.75
namespace my_app
tags env:production service:caddy
}
[namespace.]caddy.response.count - counter - number of requests handled[namespace.]caddy.response.time - histogram - milliseconds spent handling request