You cannot add custom metric types, just implementations of the existing ones. Your timer(wrapper) will have to implement Gauge or Histogram.

On 10/06/2020 14:17, Vinay Patil wrote:
Hi,

As timer metric is not provided out of the box, can I create a new MetricGroup by implementing this interface and add timer capability, this will be similar to Histogram wrapper Flink has provided. If yes, I can create a wrapper like

`public TimerWrapper implements Timer` , in this case will also have to create Timer interface and add it to the metric group.

Is this possible?

I want to have a timer to check Hbase lookup time.

Regards,
Vinay Patil


Reply via email to