From 8479e3d7a36cb61114948e003d1ffbc47037fb2c Mon Sep 17 00:00:00 2001 From: Amit Saha Date: Fri, 6 Sep 2019 09:44:41 +1000 Subject: [PATCH] README - Add a note regarding unit conversions for timers Signed-off-by: Amit Saha --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d29f868..e92caae 100644 --- a/README.md +++ b/README.md @@ -235,6 +235,10 @@ 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. +It should be noted that whereas timers in statsd expects the unit of timing data to be in milliseconds, +prometheus expects the unit to be seconds. Hence, the exporter converts all timers to seconds +before exporting them. + ### DogStatsD Client Behavior #### `timed()` decorator