flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chesnay Schepler <ches...@apache.org>
Subject Re: Custom Gauge Metric is not getting updated on Job Dashboard
Date Tue, 20 Jun 2017 11:25:44 GMT
how long does the job run? The metrics are only updated every 10 
seconds; and are not updated when the job finishes.

On 20.06.2017 12:12, sohimankotia wrote:
> 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.
>


Mime
View raw message