[jira] [Created] (FLINK-6911) StatsD Metrics name should escape spaces

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[jira] [Created] (FLINK-6911) StatsD Metrics name should escape spaces

JIRA jira@apache.org
Chris Dail created FLINK-6911:

             Summary: StatsD Metrics name should escape spaces
                 Key: FLINK-6911
                 URL: https://issues.apache.org/jira/browse/FLINK-6911
             Project: Flink
          Issue Type: Improvement
          Components: Metrics
    Affects Versions: 1.3.0
         Environment: StatsD Metrics with Telegraf server
            Reporter: Chris Dail

The StatsDReporter does not escape spaces in the metric name. It is generally accepted that spaces in the metric name are a bad idea:


Specifically, I am integrating with Telegraf. It actually splits the name on spaces and treats these as (name, value, timestamp). It ignores everything except the name.

Initially I found this issue when I had a space in the job name. Flink encodes the job name into the metrics as is. So when I put these into telegraf, all of the job level metrics ended up with the same bucket in telegraf.

Flink also uses things like "Sink- <name>" and "Source- <name>" to encode source/sink. These also do not work with telegraf. I end up with metrics that look like this inside telegraf:


The actual name is truncated after the space.

This message was sent by Atlassian JIRA