Commit Graph

3 Commits

Author SHA1 Message Date
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