fluent-plugin-metricsense 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -61,6 +61,8 @@ module Fluent
61
61
 
62
62
  config_param :backend, :string
63
63
 
64
+ config_param :aggregate_interval, :integer, :default => 60
65
+
64
66
  def configure(conf)
65
67
  super
66
68
 
@@ -203,7 +205,7 @@ module Fluent
203
205
 
204
206
  # select sum(value) from chunk group by tag, time/60, seg_val, seg_key
205
207
  chunk.msgpack_each {|tag,time,value,segments,update_mode|
206
- time = time / 60 * 60
208
+ time = time / @aggregate_interval * @aggregate_interval
207
209
 
208
210
  case update_mode
209
211
  when UpdateMode::ADD
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-metricsense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-05-10 00:00:00.000000000 Z
12
+ date: 2013-08-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd