Skip to content

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

@gerilya

Description

@gerilya

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/statsdcloudIssues or requests around cloud environmentsfeature requestRequests for new plugin and for new features to existing plugins

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions