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 ?