Skip to content

Commit d6403b5

Browse files
committed
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>
1 parent 6ea4631 commit d6403b5

File tree

7 files changed

+320
-7
lines changed

7 files changed

+320
-7
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ executors:
88
# This must match .promu.yml.
99
golang:
1010
docker:
11-
- image: circleci/golang:1.14
11+
- image: circleci/golang:1.15
1212

1313
jobs:
1414
test:

.promu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
go:
22
# This must match .circle/config.yml.
3-
version: 1.14
3+
version: 1.15
44
repository:
55
path: github.com/prometheus-community/json_exporter
66
build:

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.0 / unreleased
2+
3+
* [CHANGE] This release is complete refactoring #49
4+
* [BUGFIX] Fix unchecked call to io.Copy #57
5+
16
## 0.1.0 / 2020-07-27
27

38
Initial prometheus-community release.

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.0
1+
0.2.0

exporter/util.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ func CreateMetricsList(c config.Config) ([]JsonMetric, error) {
135135

136136
func FetchJson(ctx context.Context, logger log.Logger, endpoint string, config config.Config) ([]byte, error) {
137137
httpClientConfig := config.HTTPClientConfig
138-
client, err := pconfig.NewClientFromConfig(httpClientConfig, "fetch_json", true)
138+
client, err := pconfig.NewClientFromConfig(httpClientConfig, "fetch_json", true, false)
139139
if err != nil {
140140
level.Error(logger).Log("msg", "Error generating HTTP client", "err", err) //nolint:errcheck
141141
return nil, err

go.mod

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module github.com/prometheus-community/json_exporter
33
go 1.14
44

55
require (
6-
github.com/go-kit/kit v0.9.0
6+
github.com/go-kit/kit v0.10.0
77
github.com/kawamuray/jsonpath v0.0.0-20160208140654-5c448ebf9735
8-
github.com/prometheus/client_golang v1.7.1
9-
github.com/prometheus/common v0.10.0
8+
github.com/prometheus/client_golang v1.8.0
9+
github.com/prometheus/common v0.14.0
1010
gopkg.in/alecthomas/kingpin.v2 v2.2.6
1111
gopkg.in/yaml.v2 v2.3.0
1212
)

go.sum

+308
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)