fluent-plugin-numeric-monitor 1.0.2 → 1.0.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
  SHA1:
3
- metadata.gz: f8b75d80e18aca7eaaaf96466c1f65fe6d60b93d
4
- data.tar.gz: 1b9dc3737f3fa6365ed0a6c2186038150b16853e
3
+ metadata.gz: c9831a3f87af2ed7d4b78f5cf93bfd429f3866c3
4
+ data.tar.gz: 5c637ba413c9fb8264eac755962f0cc6761c0b2e
5
5
  SHA512:
6
- metadata.gz: 0a3b2989ebe9b4acd26ad62c0471dccc010670e866c8f219c90d3c0749c100291fab73eeb9e0f291386ac79e12c41ee7e2f315ee04f52c7fa3f4f7b524eb7826
7
- data.tar.gz: 00c6f3a1bd38e5320373ab5d282402e1d95c748f9244d402f7589c2a4735bf149ed13ddb03d6b8870ad4c76ea6b716c2ac6514ce16ffc9b8c4dd7745ce9f20c2
6
+ metadata.gz: 24735621dfc86fe3a6a4beeef498f65718e24b970bad4e2f0f37f25e8ba8163de1f5398b57c66861c61f5686c0c0eea881c00865b78a2590809b63bfdf346eb2
7
+ data.tar.gz: 8e9ed9e70c95ed96db6623ad564b997c713cb6e9603f433084bc51866cda4924aec7275869fd62b110d36caf246b1d85d834b6cba0e7a78bef1d9da0969567fc
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-numeric-monitor"
4
- gem.version = "1.0.2"
4
+ gem.version = "1.0.3"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.description = %q{Fluentd plugin to calculate min/max/avg/Xpercentile values, and emit these data as message}
@@ -173,7 +173,11 @@ class Fluent::Plugin::NumericMonitorOutput < Fluent::Plugin::Output
173
173
  if @output_per_tag
174
174
  time = Fluent::Engine.now
175
175
  flush.each do |tag, message|
176
- router.emit(@tag_prefix_string + tag, time, message)
176
+ if @tag_prefix_string
177
+ router.emit(@tag_prefix_string + tag, time, message)
178
+ else
179
+ router.emit(tag, time, message)
180
+ end
177
181
  end
178
182
  else
179
183
  router.emit(@tag, Fluent::Engine.now, flush)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-numeric-monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi