fluent-plugin-metricsense 0.2.14 → 0.3.0

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: 8dd6ab4f7b2fa39712c9ad5f13ecb744d36c7a4f
4
- data.tar.gz: 4b64a429413ccf16f5ee3777efc4125b19318103
3
+ metadata.gz: a14ac0f9b4f2783eb8147828e96595f1d95f90be
4
+ data.tar.gz: 5953b51ea70ccb737fbde71b56f7bc99d45d88aa
5
5
  SHA512:
6
- metadata.gz: c59f0a0addc0c5604a5bfe8892ed5a808ce18f5ecf28a06ac6fca144a961583de708990d9830a6a952386c77c1254b1114b8753a749d2671f4fbbac29feb763a
7
- data.tar.gz: e3ef2c3e6bc5e0986a93a830715373599e471cb5f05c7fbdfa11c8a4212ede895ef999fc7d8b2ac915e34d4c0219db2d6f114264454fa21734dbc34cfd5f6569
6
+ metadata.gz: 4d2cbc44ecb6f2a92d6ff225d33a8c5d500a4ebed48e1d0b2e211900d06060e9fd72785b95d07d6ede888bf3e7edc56fa4101f3a424dbe47631808baa984c2e3
7
+ data.tar.gz: 913fe134f124081c7c392ad2ce84da0a20e36757a13ed3f5e407532b9adf4961081f06287f7e6be01ac3190875ef6028a129c87362b2b4ab1d9139d6733850f2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.14
1
+ 0.3.0
@@ -128,13 +128,16 @@ module Fluent
128
128
  # get value
129
129
  value = record.delete(@value_key)
130
130
 
131
- # ignore record if value is invalid or 0
131
+ # ignore record if value is missing
132
+ next if value.nil?
133
+
134
+ # ignore record if value is invalid
132
135
  begin
133
136
  fv = value.to_f
134
137
  rescue
135
138
  next
136
139
  end
137
- next if fv == 0.0 || fv.nan? || fv.infinite?
140
+ next if fv.nan? || fv.infinite?
138
141
 
139
142
  # use integer if value.to_f == value.to_f.to_i
140
143
  iv = fv.to_i
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-metricsense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-27 00:00:00.000000000 Z
11
+ date: 2015-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.4.4
121
+ rubygems_version: 2.4.5
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: MetricSense - application metrics aggregation plugin for Fluentd