Telegraf: [inputs/statsd] Add support for Distribution metrics for compatibility with DataDog (DogStatsD)

Created on 16 Sep 2020  路  5Comments  路  Source: influxdata/telegraf

Feature Request

telegraf's statsd input plugin supports datadog statsd format with parse_data_dog_tags=true flag.
This is a great feature which allows using telegraf as a drop-in replacement for DataDog's agent.
Unfortunately, it does not support Distributions metric type.

Proposal:

Add support for distributions type of metrics to provide full compatibility with DataDog's statsd (DogStatsD).

Current behavior:

When sending distributions metrics to telegraf, the metrics are dropped generating the following error in the logs:

Aug 10 08:55:44 mytest-i-02d65c1fc7f587007.sonic-us telegraf[3719]: 2020-08-10T08:55:44Z E! [inputs.statsd] Metric type "d" unsupported

Desired behavior:

Same behaviour as in DogStatsD, ideally implemented the same way to provide identical behaviour. That is, send all raw data collected during the flush interval to the output like DogStatsD does.

Use case:

Seamless migration from DataDog.

arestatsd cloud feature request

Most helpful comment

@sjwang90 I've raised a PR to add support for this 馃槃. Let me know of any changes required to merge this 馃憤

All 5 comments

If anyone is interested and submitting a PR for adding Distribution metrics this seems like a nice feature to get in for inputs.statsd

@sjwang90 I've raised a PR to add support for this 馃槃. Let me know of any changes required to merge this 馃憤

@sjwang90 as v1.16 went out approx one month ago, I am wondering whether you have an ETA for merging this nice feature into the master branch. Thank you

There hasn't been any reviews on the PR yet, so we'll get someone to take a look.

@gerilya Can you confirm you've tested the PR and haven't run into any problems? Feedback from interested users helps expedite the PR process.

@sjwang90 yes, I can confirm we are using this in production since Nov 25.
Our custom telegraf version is basically telegraf v1.16.2 + PR https://github.com/influxdata/telegraf/pull/8179/files for distribution metrics support.

This is a killing feature for everyone looking to migrate from DataDog. Big thanks to @ppsreejith !

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fahimeh2010 picture fahimeh2010  路  3Comments

efficks picture efficks  路  3Comments

SongYg picture SongYg  路  3Comments

Xiol picture Xiol  路  3Comments

timhallinflux picture timhallinflux  路  3Comments