You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Ganesh Manal <ga...@maplelabs.com> on 2018/04/27 07:49:20 UTC

Counter and guage metric are not populated consistently.

Hi,

The custom counter/guage metric are generated only in special case.

Like if I execute wordcount example with hdfs file as input, I am able to see the counters.
But in case, wordcount is executed without hdfs file as input, i.e. using default Datasets, metric counters are not generated.

I am using flink 1.4.0.
Is there a specific configuration required for this ?

Thanks,
Ganesh Manal



Re: Counter and guage metric are not populated consistently.

Posted by Chesnay Schepler <ch...@apache.org>.
If a job finishes very quickly it commonly happens that metrics are not 
exposed; the WebUI periodically polls metrics, but the polling only 
works while the job is running. Reporters that expose metrics 
periodically show the same behavior.

On 27.04.2018 09:49, Ganesh Manal wrote:
>
> Hi,
>
> The custom counter/guage metric are generated only in special case.
>
> Like if I execute wordcount example with hdfs file as input, I am able 
> to see the counters.
>
> But in case, wordcount is executed without hdfs file as input, i.e. 
> using default Datasets, metric counters are not generated.
>
> I am using flink 1.4.0.
>
> Is there a specific configuration required for this ?
>
> Thanks,
>
> Ganesh Manal
>