[ https://issues.apache.org/jira/browse/FLINK-16397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
BlaBlabla updated FLINK-16397: ------------------------------ Description: I'm using flink GraphiteReporter to monitor metrics. But I found that the GraphiteReporter will convert double / float type metrics to the format : "%2.2f", only keep two fractions. like Status.JVM.CPU.Load metric was converted to a wired value, like 0.00, 0.01 . it is bad :( For more detail, see the double format function in dropwizard metrics project:: [https://github.com/dropwizard/metrics/blob/4.1-development/metrics-graphite/src/main/java/com/codahale/metrics/graphite/GraphiteReporter.java#L401] {code:java} protected String format(double v) { // the Carbon plaintext format is pretty underspecified, but it seems like it just wants // US-formatted digits return String.format(Locale.US, "%2.2f", v); {code} was: I'm using flink GraphiteReporter to monitor metrics. But I found that the GraphiteReporter will convert double / float type metrics to the format : "%2.2f", only keep two fractions. like CPU_LOAD metric was converted to a wired value, like 0.00, 0.01 . it is bad :( For more detail, see the double format function in dropwizard metrics project:: [https://github.com/dropwizard/metrics/blob/4.1-development/metrics-graphite/src/main/java/com/codahale/metrics/graphite/GraphiteReporter.java#L401] {code:java} protected String format(double v) { // the Carbon plaintext format is pretty underspecified, but it seems like it just wants // US-formatted digits return String.format(Locale.US, "%2.2f", v); {code} > [metric] flink metric graphite will format double metrics to "%2.2f" > -------------------------------------------------------------------- > > Key: FLINK-16397 > URL: https://issues.apache.org/jira/browse/FLINK-16397 > Project: Flink > Issue Type: Bug > Components: Runtime / Metrics > Reporter: BlaBlabla > Priority: Major > > I'm using flink GraphiteReporter to monitor metrics. But I found that the > GraphiteReporter will convert double / float type metrics to the format : > "%2.2f", only keep two fractions. like Status.JVM.CPU.Load metric was > converted to a wired value, like 0.00, 0.01 . > it is bad :( > For more detail, see the double format function in dropwizard metrics > project:: > [https://github.com/dropwizard/metrics/blob/4.1-development/metrics-graphite/src/main/java/com/codahale/metrics/graphite/GraphiteReporter.java#L401] > {code:java} > protected String format(double v) { > // the Carbon plaintext format is pretty underspecified, but it seems > like it just wants > // US-formatted digits > return String.format(Locale.US, "%2.2f", v); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)