fluent-plugin-eventcounter 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-eventcounter"
|
4
|
-
gem.version = "0.0.
|
4
|
+
gem.version = "0.0.2"
|
5
5
|
gem.authors = ["Sean Dick", "Change.org"]
|
6
6
|
gem.email = ["sean@change.org"]
|
7
7
|
gem.homepage = "https://github.com/seanmdick/fluent-plugin-eventcounter"
|
@@ -68,12 +68,10 @@ class Fluent::EventCounterOutput < Fluent::BufferedOutput
|
|
68
68
|
counts.each do |tag,events|
|
69
69
|
events.each do |event, c|
|
70
70
|
redis_key = [@redis_output_key,tag].join(':')
|
71
|
-
Fluent::Engine.emit(@emit_to, Time.now, redis_key => { event => c})
|
72
71
|
@redis.hincrby(redis_key, event, c.to_i)
|
73
72
|
end
|
74
73
|
end
|
75
74
|
end
|
76
75
|
end
|
77
76
|
end
|
78
|
-
|
79
77
|
end
|