Skip to content

Commit

Permalink
Release v0.2.0
Browse files Browse the repository at this point in the history
* Update changelog
* Bump Go modules.
* Update NewClientFromConfig use

prometheus/common#249 added option to disable HTTP/2.

Signed-off-by: Ben Kochie <superq@gmail.com>
  • Loading branch information
SuperQ committed Nov 2, 2020
1 parent 6ea4631 commit e96ab35
Show file tree
Hide file tree
Showing 5 changed files with 318 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.2.0 / unreleased

* [CHANGE] This release is complete refactoring #49
* [BUGFIX] Fix unchecked call to io.Copy #57

## 0.1.0 / 2020-07-27

Initial prometheus-community release.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.2.0
2 changes: 1 addition & 1 deletion exporter/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func CreateMetricsList(c config.Config) ([]JsonMetric, error) {

func FetchJson(ctx context.Context, logger log.Logger, endpoint string, config config.Config) ([]byte, error) {
httpClientConfig := config.HTTPClientConfig
client, err := pconfig.NewClientFromConfig(httpClientConfig, "fetch_json", true)
client, err := pconfig.NewClientFromConfig(httpClientConfig, "fetch_json", true, false)
if err != nil {
level.Error(logger).Log("msg", "Error generating HTTP client", "err", err) //nolint:errcheck
return nil, err
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ module github.com/prometheus-community/json_exporter
go 1.14

require (
github.com/go-kit/kit v0.9.0
github.com/go-kit/kit v0.10.0
github.com/kawamuray/jsonpath v0.0.0-20160208140654-5c448ebf9735
github.com/prometheus/client_golang v1.7.1
github.com/prometheus/common v0.10.0
github.com/prometheus/client_golang v1.8.0
github.com/prometheus/common v0.14.0
gopkg.in/alecthomas/kingpin.v2 v2.2.6
gopkg.in/yaml.v2 v2.3.0
)

0 comments on commit e96ab35

Please sign in to comment.