In depth explanationI'm developing a custom prometheus exporter that works just like the infamous blackbox exporter but will be able to collect more customisable metrics (with validating responses of endpoints and lots of funny stuff). This would be particularly helpful to perform "whitebox monitoring" for systems that do not offer a metrics endpoint them self. I guess we could even call it "whitebox exporter". I'm developing that thing in dotnet core and therefore I'm using the official
prometheus-net library. Currently the library does a lot, but it's not possible to send arguments to the exporter, which then can be interpreted. Currently I have to configure the finally scraped endpoints directly inside my custom exporter but I would like to configure this inside prometheus and use relabelling to send the scrapping endpoint to my exporter as an HTTP Argument (like it's done with the blackbox exporter). A call to this exporter would then look like this: `
https://my-exporter/metrics?target=https://google.com`. This is literally how it's done with the blackbox exporter.
As it stands I implemented the feature to receive the needed arguments and handle them inside the mentioned library. I created a pull request but the maintainer is not sure whether this is a good idea or not.
We would love to hear some opinions of experienced prometheus users and developers.
Feel free to comment here or on the pull request on Github.
Thanks in advance !