MetricRegistry in OutputMessage

Hi all!

I am working on a Output Plugin and would like to publish metrics via REST API (/api/system/metrics) and also for logging (LocalRegistry).
It looks like InputMessage has the right Interface, but is there a way to get it injected to my OutputMessage as well?

Any help is welcome :slight_smile:

Already figured it out for myself, i think…

I just tried to add a MetricRegistry parameter to the @Inject annotated Constructor of my OutputMessage Implementation and the DI magic just worked.

:smiley:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.