I was testing flink Gauge metric in my flat map function . I was just sending
a value (end time -start time ) of a DB Op in Flatmap . But on dashboard is
only showing first value instead of updated value .

I am using following code in my flat map .

getRuntimeContext()
    .getMetricGroup()
    .gauge("DBOpInSec", (Gauge<String>) () -> String.valueOf(
(endTime-startTime)/1000 )); 





--
View this message in context: 
http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/Custom-Gauge-Metric-is-not-getting-updated-on-Job-Dashboard-tp13842.html
Sent from the Apache Flink User Mailing List archive. mailing list archive at 
Nabble.com.

Reply via email to