Commit Graph

8 Commits

Author SHA1 Message Date
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
rustyclock fe22a839e2
Migrate JSONPath library
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2021-01-24 13:49:10 +09: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
Konstantinos Koukopoulos 1555ed88d4 Fix unchecked call to io.Copy
After #49 was merged to master the build failed due to a linting error:

    GO111MODULE=on /go/bin/golangci-lint run  ./...
    exporter/util.go:162:10: Error return value of `io.Copy` is not checked
    (errcheck)
                    io.Copy(ioutil.Discard, resp.Body)
                           ^
    make: *** [Makefile.common:192: common-lint] Error 1

build failure here:
https://app.circleci.com/pipelines/github/prometheus-community/json_exporter/28/workflows/e2c53db3-d3a3-4faa-a5a6-3b1fbb5754a0/jobs/71

Signed-off-by: Konstantinos Koukopoulos <koukopoulos@aisera.com>
2020-11-02 13:31:20 +02:00
rustyclock 9f94906a18
Change package name from 'internal' to 'exporter'
Signed-off-by: rustyclock <rustyclock@protonmail.com>
2020-10-03 09:03:56 +09:00