adp-fluent-plugin-graphite 0.0.13 → 0.0.17

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: 2132e7a1254a424751d140529b61db59d0fb83b1a3f7832e3c1298274fca6d48
4
- data.tar.gz: 22a3e8ca7de5f2b9c1b8e0ed765256b96955d3e6a9f28abb02a6e4fcf7223727
3
+ metadata.gz: dc6c538d57d214e28afe6506eaa28724538635001cea605b141e91a2594a4989
4
+ data.tar.gz: 7c99eaf2efcd0823a0feb1069c5f2b3a48290acdc1663cf625da992bc8941a7f
5
5
  SHA512:
6
- metadata.gz: f87b59623230b6d2ac2b7d50cb3f2ef812fd8c0482697d3aa9484bfd673f1ee1e9d36d07415c64c4aa1f082b3559b85fe06866977c7c5cd757fd552e7174abe7
7
- data.tar.gz: 5e39bee75a4c1d486be3fab422f92a0c71f7758c6ffd9ff4fde0b6a203c387a32bdbc5020681f89fb019c3f6cd5946122ba5573ba98c9cabcf41602198614518
6
+ metadata.gz: e5229a0f34d63e992e75f4960284c31bad58e06cf7db604299681b6d7e51ba949695287b582bcbcaf7da9909494918292f69c7d46c3c065d3209a3ab9b466843
7
+ data.tar.gz: 514cffc5cf61f35efb5b9f654ea1b31227ae391fe072e13f0f087a9967a66c553fa9739310cc3b78bae99564ba82f8af62a4139a68d250f7bee4bf0b5e923a50
@@ -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.13'
6
+ gem.version = '0.0.17'
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'
@@ -43,7 +43,7 @@ module Fluent::Plugin
43
43
 
44
44
  def format_metrics(tag, record)
45
45
  metrics = {}
46
- metrics[@monitoring_key + tag] = 1
46
+ metrics[@monitoring_key + "." + tag] = 1
47
47
  metrics
48
48
  end
49
49
 
@@ -70,7 +70,21 @@ 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: "tcp://#{@host}:#{@port}",
76
+
77
+ # Optional: results are aggregated in 60 seconds slices ( default is 60 )
78
+ slice: 30,
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
+ @client = GraphiteAPI.new options
87
+ GraphiteAPI::Logger.init level: :debug
74
88
  log.info("starting client")
75
89
  end
76
90
  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.13
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi SUZUKI