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 +4 -4
- data/adp-fluent-plugin-graphite.gemspec +1 -1
- data/lib/fluent/plugin/out_graphite.rb +16 -2
- 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: dc6c538d57d214e28afe6506eaa28724538635001cea605b141e91a2594a4989
|
4
|
+
data.tar.gz: 7c99eaf2efcd0823a0feb1069c5f2b3a48290acdc1663cf625da992bc8941a7f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|