mirror of
https://github.com/prometheus/statsd_exporter.git
synced 2024-11-29 10:41:00 +00:00
Merge pull request #261 from amitsaha/master
Update use_ms note for dogstatsd client
This commit is contained in:
commit
8fa4613e74
1 changed files with 6 additions and 1 deletions
|
@ -235,7 +235,12 @@ mappings:
|
||||||
|
|
||||||
Note that timers will be accepted with the `ms`, `h`, and `d` statsd types. The first two are timers and histograms and the `d` type is for DataDog's "distribution" type. The distribution type is treated identically to timers and histograms.
|
Note that timers will be accepted with the `ms`, `h`, and `d` statsd types. The first two are timers and histograms and the `d` type is for DataDog's "distribution" type. The distribution type is treated identically to timers and histograms.
|
||||||
|
|
||||||
The DogStatsD client by default emits timer metrics in seconds, set [use_ms](https://datadogpy.readthedocs.io/en/latest/index.html?highlight=use_ms) to `True` to fix this.
|
### DogStatsD Client Behavior
|
||||||
|
|
||||||
|
#### `timed()` decorator
|
||||||
|
|
||||||
|
If you are using the DogStatsD client's [timed](https://datadogpy.readthedocs.io/en/latest/#datadog.threadstats.base.ThreadStats.timed) decorator,
|
||||||
|
it emits the metric in seconds, set [use_ms](https://datadogpy.readthedocs.io/en/latest/index.html?highlight=use_ms) to `True` to fix this.
|
||||||
|
|
||||||
### Regular expression matching
|
### Regular expression matching
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue