Commit Graph

8 Commits

Author SHA1 Message Date
Ravi bd0852bc25
Add support for HTTP `POST` body content (#123)
* Add support for HTTP POST body content

* Add tests for POST body content

* Code structure refactor for review
2021-10-03 09:30:53 +00:00
rustyclock fe22a839e2
Migrate JSONPath library
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2021-01-24 13:49:10 +09:00
rustyclock a46be321e3
Update prometheus sample config
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-10-05 11:41:28 +09:00
rustyclock 014e2df99b
Add unit tests
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-20 11:48:09 +09:00
rustyclock a6b9654e6a
Use NewConstMetric instead of regular Gauge
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-19 11:58:17 +09:00
rustyclock bf7590adb7
Add HTTP config support
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 20:03:21 +09:00
rustyclock 0b34d68918
Add example prometheus config
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-04 15:37:28 +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