Fix format for dogstatsd tags

Only key:value format for dogstatsd is accepted by latest version of statsd exporter.
I've tried both official client and bash scripts to send the data:

    echo "newpure.test:1|c|@0.5|#country:china" | nc -w 1 -u 127.0.0.1 9125` - will work
    echo "newpure.test:1|c|@0.5|#country=china" | nc -w 1 -u 127.0.0.1 9125 - will not work

Signed-off-by: Marcin Lulek <info@webreactor.eu>
This commit is contained in:
Marcin Lulek 2019-11-05 17:55:23 +01:00
parent 7d2a901b6c
commit a1c201d821

View file

@ -59,7 +59,7 @@ For DogStatsD-style tags, they're appended as a `|#` delimited section at the
end of the metric, as so: end of the metric, as so:
``` ```
metric.name:0|c|#tagName=val,tag2Name=val2 metric.name:0|c|#tagName:val,tag2Name:val2
``` ```
See [Tags](https://docs.datadoghq.com/developers/dogstatsd/data_types/#tagging) See [Tags](https://docs.datadoghq.com/developers/dogstatsd/data_types/#tagging)