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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21120861eb51aec332d4284c136334ea9fce73141f40323d1113e0d22f2958f0
4
- data.tar.gz: a5f0d97c4e056764d8bfd87dd02e4a5b733c9df89558ee3ec1155f307ce89400
3
+ metadata.gz: 3d7ea3516d03ae9df0d626c97453daa20ca97c86491e4ebbeb47bdf8bb0a95e3
4
+ data.tar.gz: f306f5437dd3fbff7394985cf3ad4618bcecde930d24d74be8529918ad5a2b62
5
5
  SHA512:
6
- metadata.gz: 95d3c4eb3c8527b372cdb151a4da8b067b3a23eda527584789687deb7c0e8135b59c472c28f43585b49e608a4a4f951573ce5dc4174c2ca7f70dea72f485d9dc
7
- data.tar.gz: dd18d9731cd866f0214f8c0073559b6cfbe95c718801a659a7d228c05a7919174b9e0b14f386c3b2d82bbd75700b84d373e9f94d90cbc016cc369179dd788353
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.14'
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
- @client = GraphiteAPI.new(graphite: "#{@host}:#{@port}")
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adp-fluent-plugin-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi SUZUKI