Commit Graph

15 Commits

Author SHA1 Message Date
Ben Kochie 621139e1b2
Release 0.4.0 (#136)
* [FEATURE] Add support for HTTP POST body content #123

Signed-off-by: SuperQ <superq@gmail.com>
2022-01-18 14:46:03 +09:00
SuperQ eaf94d3a5e
Update build
* Update to Go 1.17.
* Update modules.
* Enable golint CI test.
* Fixup golint issues.

Signed-off-by: SuperQ <superq@gmail.com>
2021-10-05 13:21:42 +02:00
SuperQ 5783a9ca02
Refactor FetchJson
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>
2021-10-03 13:30:18 +02:00
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
SuperQ 6a8afe49e2
Update Go modules
* Update to latest modules.
* Use new syntax for http client[0].

[0]: https://github.com/prometheus/common/pull/291

Signed-off-by: SuperQ <superq@gmail.com>
2021-08-05 11:00:42 +02:00
Ben Kochie 206155e36d
Add k8s.io/client-go exlude list
Add a similar exclude list to prometheus/prometheus to exclude
pre go modules k8s.io/client-go[0]. This allows easy use of
`make update-go-deps`.

[0]: 89e9632a34/go.mod (L94-L116)

Signed-off-by: Ben Kochie <superq@gmail.com>
2021-02-10 15:30:56 +01:00
rustyclock fe22a839e2
Migrate JSONPath library
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2021-01-24 13:49:10 +09:00
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 fa085b219d
Switch to kingpin
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-06 07:32:11 +09:00
rustyclock f57d3e9429
Migrate logging to promlog
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-08-05 18:31:04 +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 2d1678ed95
Add Docker
* Add Dockerfile and prometheuscommunity.
* Add promehteus common Version handler.
* Update README.

Signed-off-by: Ben Kochie <superq@gmail.com>
2020-04-17 10:06:54 +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