Hi Allen,

On Fri, 2020-05-22 at 20:52 +0000, Allen Liu wrote:
> Hi all
> 
> I have been using metricsService to add metric instrumentation for
> counter, histogram, meter and timer. However, the metricsService
> doesn’t seem to have a way to add gauge type instrumentation.
> Does anyone know how to add gauge instrumentation using
> metricsService?

You should be able to reference a com.codahale.metrics.MetricRegistry
service directly, and use the raw DropWizard APIs for gauges.

Hope this helps,
Robert

Reply via email to