Commit Graph

8 Commits

Author SHA1 Message Date
Daniel Maganto bffc11991b
Add TLS metrics support
Signed-off-by: Daniel Maganto <dmagantomartin@gmail.com>
2020-12-10 18:04:27 +01:00
Ben Kochie d6403b58a8
Release v0.2.0
* 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>
2020-11-02 16:32:28 +01: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 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
Ben Kochie d001c8fc3c
Release 0.1.0
* Add initial changelog.
* Bump Go deps.
* Update circleci prometheus orb.

Closes: https://github.com/prometheus-community/json_exporter/issues/32
Closes: https://github.com/prometheus-community/json_exporter/issues/41

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-07-27 10:08:41 +02:00
Ben Kochie 4621bca6f6
More community cleanup
* Fix up naming to be json_exporter.
* Fix more imports/paths.
* Add Go modules.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 08:45:38 +02:00