Hi, Bruno from Portugal trying to contribute to an already existing extension that has been stale for 2years now. I was challenged to enhance it by making it compatible with the current wiremock docker image which was done without much difficulty. What I am struggling with it the other requirement - Parameterize the extension.
The extension - the fork I am working on is:
https://github.com/chegancasb/wiremock-metrics - presents the application performance through a prometheus endpoint where the necessary metrics are exposed. The issue is that, as far as I could understand, there was no way to customize the displayed dimensions, particularly the exposed performance histogram categories. The metrics accounting relies on Micrometer counters but its configuration depend on the default constructor of the metrics configuration object which does not consume any sort of parameters. The question is there a documented way of adding new application arguments to be consumed by the extensions?
What is the recommended approach here?
Thank you for your help!