Refactor FetchJson to use a constructor.
* Cleanup nolint to use a a .golangci.yml config.
* Switch go-kit/kit/log to go-kit/log.
Signed-off-by: SuperQ <superq@gmail.com>
* Update changelog
* Bump Go modules.
* Update NewClientFromConfig use
* Bump Go to 1.15.
prometheus/common#249 added option to disable HTTP/2.
Signed-off-by: Ben Kochie <superq@gmail.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>