fluent-plugin-prometheus 2.0.1 → 2.0.2

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: 53ce03bc02b89a80dbb46f166e91ad0e4a71011c54dcf1b2999fe5ef24aab7b8
4
- data.tar.gz: d8a764f2a0ba7ffeb6ae383002aef2705e0a8c7a76550d8647452bfa032edf37
3
+ metadata.gz: 949d2ec196fae78bdfcbbfeae20d718e7a3a34a6ceba9ba665d1a7d40326d529
4
+ data.tar.gz: c1adf9a63565a38141247034157f84aadb85336e5add24ca6d99c126cd8e01d7
5
5
  SHA512:
6
- metadata.gz: d4187d6c44ae90bcbcb357efe3b6502c4a62250aa61d77779ded61c80e6be76d04e33a87ade92e9b5e4684d3b7b8d8d89a3eef9d622e9824d4801fc93ee0d6ca
7
- data.tar.gz: c9a8db411e69763e3759ac7b3b0b9b14bd4eaf64d0c33ac0b97ac33fdcfdae2bf014c1e76de13e4c400251000faf9494e0258eddd8802f052885637003392960
6
+ metadata.gz: 7199fc669d4c389fa5638615d16a4fdb29a27cc959b60c3ec6e3031328a9cb052bb6169733c73e66f659ec929aa3faffd8869187dc70f6eff361263b3304ecb0
7
+ data.tar.gz: acfbe23681c5bf801ae10c41a265dfb358b05516b79d0e2944317469b0b4be8aad5b1fbda246d9e4caa0e75f473428046015232c0900689ccb629a3b7c5b72a8
@@ -5,12 +5,18 @@ on:
5
5
  jobs:
6
6
  build:
7
7
  runs-on: ${{ matrix.os }}
8
+ continue-on-error: ${{ matrix.experimental }}
8
9
  strategy:
9
10
  fail-fast: false
10
11
  matrix:
11
- ruby: [ '2.4', '2.5', '2.6', '2.7' ]
12
+ ruby: [ '2.5', '2.6', '2.7', '3.0' ]
12
13
  os:
13
14
  - ubuntu-latest
15
+ experimental: [false]
16
+ include:
17
+ - ruby: head
18
+ os: ubuntu-latest
19
+ experimental: true
14
20
  name: Ruby ${{ matrix.ruby }} unit testing on ${{ matrix.os }}
15
21
  steps:
16
22
  - uses: actions/checkout@v2
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 2.0.2 - 2021/08/02
2
+
3
+ * in_prometheus_output_monitor: Follow Fluentd's core metrics mechanism
4
+
1
5
  Release 2.0.1 - 2021/04/08
2
6
 
3
7
  * out_prometheus: Allow for lookup by symbol as well as string
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "fluent-plugin-prometheus"
3
- spec.version = "2.0.1"
3
+ spec.version = "2.0.2"
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.}
@@ -144,7 +144,16 @@ module Fluent::Plugin
144
144
 
145
145
  # output metrics
146
146
  'retry_count' => @metrics[:retry_counts],
147
+ # Needed since Fluentd v1.14 due to metrics extensions.
148
+ 'num_errors' => @metrics[:num_errors],
149
+ 'write_count' => @metrics[:write_count],
150
+ 'emit_count' => @metrics[:emit_count],
151
+ 'emit_records' => @metrics[:emit_records],
152
+ 'rollback_count' => @metrics[:rollback_count],
153
+ 'flush_time_count' => @metrics[:flush_time_count],
154
+ 'slow_flush_count' => @metrics[:slow_flush_count],
147
155
  }
156
+ # No needed for Fluentd v1.14 but leave as-is for backward compatibility.
148
157
  instance_vars_info = {
149
158
  num_errors: @metrics[:num_errors],
150
159
  write_count: @metrics[:write_count],
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: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Sano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-09 00:00:00.000000000 Z
11
+ date: 2021-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  requirements: []
162
- rubygems_version: 3.1.2
162
+ rubygems_version: 3.2.22
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: A fluent plugin that collects metrics and exposes for Prometheus.