Package org.apache.kafka.common.metrics
Interface Monitorable
public interface Monitorable
Plugins can implement this interface to register their own metrics.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
withPluginMetrics
(PluginMetrics metrics) Provides aPluginMetrics
instance from the component that instantiates the plugin.
-
Method Details
-
withPluginMetrics
Provides aPluginMetrics
instance from the component that instantiates the plugin. PluginMetrics can be used by the plugin to register and unregister metrics at any point in their lifecycle prior to their close method being called. Any metrics registered will be automatically removed when the plugin is closed.
-