fluent-plugin-prometheus 1.8.2 → 1.8.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6be199d6eb3693d4fe35be96961c05475a667ce8a7fe4b344fb6c5f7c269e820
4
- data.tar.gz: 3cb81f50d84773da036d7bafadfa41c05928a7fb062310eeea0eea6546382900
3
+ metadata.gz: 4e739b07c782da7117d24c2fd38e06cfdb244d5acf68670a38ebad9550261d5c
4
+ data.tar.gz: 93fcda335d86fc20d16b225cab8a075cc853823d0f616d453bc176fb26e787cb
5
5
  SHA512:
6
- metadata.gz: fc05d9f8283546700cc401c771d5444470e806fd4193cc47f661e01fd91bcd402ac2b0aa7fd52f2fa92ff5811f76d19aca378e3ae9919b93de27bca8e0300581
7
- data.tar.gz: e614db8e23a6dad5a0d416b224e49ca1895b641b4b0d41933954d709080344f90cb79bc51869533d0efc43e93422dd401e4b547fa85ea316fa1f13457236933f
6
+ metadata.gz: f0017117f4c478bf3bb41e28d5103396771450377997dc642dc9b80d66729ce1fb26eb68cda184c7ad8f9805e51377869772834f8248732d3e067c728d5b7681
7
+ data.tar.gz: 6dc252c05caaf90530446fe8c102c8a60b89c1c918e3c00205b0c6ca845c9991faf8edc271b883fec402661f33f732cb7c027e705427097a8dc32af096005496
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 1.8.3 - 2020/08/24
2
+
3
+ * Fix resourcr leak in async-http based server
4
+
1
5
  Release 1.8.2 - 2020/07/17
2
6
 
3
7
  * in_prometheus_output_monitor/in_prometheus_tail_monitor: Support USR2 reload
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "fluent-plugin-prometheus"
3
- spec.version = "1.8.2"
3
+ spec.version = "1.8.3"
4
4
  spec.authors = ["Masahiro Sano"]
5
5
  spec.email = ["sabottenda@gmail.com"]
6
6
  spec.summary = %q{A fluent plugin that collects metrics and exposes for Prometheus.}
@@ -13,8 +13,9 @@ module Fluent::Plugin
13
13
  Async::HTTP::Endpoint.parse("http://#{host}:#{port}")
14
14
  end
15
15
 
16
- client = Async::HTTP::Client.new(endpoint)
17
- yield(AsyncHttpWrapper.new(client))
16
+ Async::HTTP::Client.open(endpoint) do |client|
17
+ yield(AsyncHttpWrapper.new(client))
18
+ end
18
19
  end
19
20
 
20
21
  Response = Struct.new(:code, :body, :headers)
@@ -38,7 +39,7 @@ module Fluent::Plugin
38
39
  raise error
39
40
  end
40
41
 
41
- Response.new(response.status.to_s, response.body.read, response.headers)
42
+ Response.new(response.status.to_s, response.read || '', response.headers)
42
43
  end
43
44
  end
44
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-prometheus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.2
4
+ version: 1.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Sano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-17 00:00:00.000000000 Z
11
+ date: 2020-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd