The plugin architecture uses the Java Service Loader to load custom plugins when the agent starts.

You must implement the interface and create a file named inside the META-INF/services directory containing you implementation full class name.



public class  CustomPlugin implements AgentPlugin {

    public void start(Gcs gcs) {
        // do something


Finally you must put the resulting jar inside the agent class-path. You must run your code inside a thread otherwise the broker agent will block the execution and will not load the remaining plugins.

Check our GitHub repository to see the available plugins.