adp-fluent-plugin-graphite 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/adp-fluent-plugin-graphite.gemspec +1 -1
- data/lib/fluent/plugin/out_graphite.rb +19 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d7ea3516d03ae9df0d626c97453daa20ca97c86491e4ebbeb47bdf8bb0a95e3
|
4
|
+
data.tar.gz: f306f5437dd3fbff7394985cf3ad4618bcecde930d24d74be8529918ad5a2b62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ebe013292fc99265b692e060b5a3041f2b2ef770becb3f53f20eb372ecb7a4f594e51bfa8ee607fcb7c059918f52bca0d334f876a119dbd9d51031aa2eebc63
|
7
|
+
data.tar.gz: f902ca5c94366c979a009bbbfe39cbc3951c06ee18ff27b7ec2c2d177423c07d593e98cc16184e43cef81770cc37398ee96c574226f06cc9019d8061812747ae
|
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
5
|
gem.name = 'adp-fluent-plugin-graphite'
|
6
|
-
gem.version = '0.0.
|
6
|
+
gem.version = '0.0.15'
|
7
7
|
gem.authors = ['Satoshi SUZUKI']
|
8
8
|
gem.email = 'studio3104.com@gmail.com'
|
9
9
|
gem.homepage = 'https://github.com/studio3104/fluent-plugin-graphite'
|
@@ -70,7 +70,25 @@ module Fluent::Plugin
|
|
70
70
|
end
|
71
71
|
|
72
72
|
def connect_client!
|
73
|
-
|
73
|
+
options = {
|
74
|
+
# Required: valid URI {udp,tcp}://host:port/?timeout=seconds
|
75
|
+
graphite: "udp://#{@host}:#{@port}",
|
76
|
+
|
77
|
+
# Optional: results are aggregated in 60 seconds slices ( default is 60 )
|
78
|
+
slice: 60,
|
79
|
+
|
80
|
+
# Optional: send to graphite every 60 seconds ( default is 0 - direct send )
|
81
|
+
interval: 30,
|
82
|
+
|
83
|
+
# Optional: set the max age in seconds for records reanimation ( default is 12 hours )
|
84
|
+
cache: 4 * 60 * 60,
|
85
|
+
|
86
|
+
# Optional: The default aggregation method for multiple reports in the same slice (default is :sum).
|
87
|
+
# Possible options: :sum, :avg, :replace
|
88
|
+
default_aggregation_method: :avg
|
89
|
+
}
|
90
|
+
@client = GraphiteAPI.new options
|
91
|
+
GraphiteAPI::Logger.init level: :debug
|
74
92
|
log.info("starting client")
|
75
93
|
end
|
76
94
|
end
|