Till Rohrmann created FLINK-21129:
-------------------------------------

             Summary: Long metric names cause Graphite to not store them
                 Key: FLINK-21129
                 URL: https://issues.apache.org/jira/browse/FLINK-21129
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Metrics
    Affects Versions: 1.11.1
            Reporter: Till Rohrmann


While using the {{GraphiteReporter}} and a simple job with a window function, I 
noticed that Flink generates metric names which are too long for Graphite to 
handle.

{code}
githubCommits
                .global()
                .windowAll(TumblingEventTimeWindows.of(Time.days(1)))
                .apply(new MyWindowFunction())
{code}

The generated metric name was 
{{/opt/graphite/storage/whisper/172-20-3-229/taskmanager/flink-taskmanager-1-1/Commit-rate-per-day-program/TriggerWindow(TumblingEventTimeWindows(86400000),-ListStateDescriptor{name=window-contents,-defaultValue=null,-serializer=org-apache-flink-api-common-typeutils-base-ListSerializer@da6e90ca},-EventTimeTrigger(),-AllWindowedStream-runJob(CommitRateProgram-java:96))-->-Sink:-Unnamed/0/numRecordsInPerSecond/m1_rate.wsp}}

The error only shows in the logs of Graphite.




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to