Can I Extend the Logstash API?

I'm looking to extend the API logstash provides to add an endpoint for scraping more in-depth metrics for our prometheus monitoring.

I've been examining the source code and can get something working with adding a manual require to my plugin but there seems to be no easy way to get that plugin to be automatically required. Anyone done something like this before? I'd prefer to work via a plugin rather than having to create my own images from source which will make updates in the future much more painful to apply. I may well be missing something obvious however!

Ahh, I've just found the HOOKS_FILE (logstash_registry.rb) that I can add to my gem, I believe this will do the job!

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