* support modules configuration
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* fallback default module if the param is missing
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* update readme and example config file
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* fix lint
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
* Make the working of this exporter similar to that of the blackbox_exporter to allow probing multiple targets.
* Add functionality to add headers to the request
* Update the example config to use `headers` as well as the `metrics` keys in alignment with the new code
* Add default header 'Accept: application/json'
Signed-off-by: rustyclock <rustyclock@protonmail.com>