Commit Graph

4 Commits

Author SHA1 Message Date
rustyclock fa085b219d
Switch to kingpin
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 07:32:11 +09:00
rustyclock 1e1ba273ed
Fix lint errors
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:39:09 +09:00
rustyclock f57d3e9429
Migrate logging to promlog
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:31:04 +09:00
rustyclock c869516e98
Refactor the complete code
* 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>
2020-08-04 15:21:24 +09:00