THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
I propose introducing a new interface: Monitorable
. If a plugin implements this interface, the withPluginMetrics()
method will be called when the plugin is instantiated (after configure()
if the plugin also implements Configurable
). This will allow plugins to adds add their own metrics to the component (broker, producer, consumer, etc) that instantiated them.
...