adp-fluent-plugin-graphite 0.0.6 → 0.0.7
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 +6 -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: 2cf1fde65bf527feec4f5bdcb3a1ac13c4e3479f7695a1662bd0484e4759ba9d
|
4
|
+
data.tar.gz: 95dc1c0ec5507f58d0d1d98b7ce9979ae2760f2926010b971e72bf4acfc56313
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 07c509264532d610cfb79f5b1d91d06e3d52a3fd5911169f290a6ffab67b6ea7484592b34b7d7a8aeb0b9693792e45ea4a89115b57786cc51955f5f02d7ec0fb
|
7
|
+
data.tar.gz: '059c7d712b4cbc8030b48c1201ffccbf15ee42f54b6daad61c300deffc2bb808e69a23910dca5250e2475a304da8627fedb36a31342c6a05f028ccb2664e9a7f'
|
@@ -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.7'
|
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'
|
@@ -1,9 +1,12 @@
|
|
1
1
|
require 'fluent/plugin/output'
|
2
|
+
require 'fluent/mixin/rewrite_tag_name'
|
2
3
|
|
3
4
|
module Fluent::Plugin
|
4
5
|
class GraphiteOutput < Output
|
5
6
|
Fluent::Plugin.register_output('graphite', self)
|
6
7
|
|
8
|
+
include Fluent::Mixin::RewriteTagName
|
9
|
+
|
7
10
|
config_param :host, :string
|
8
11
|
config_param :port, :integer, default: 2003
|
9
12
|
config_param :tag_for, :string, default: 'prefix'
|
@@ -24,7 +27,9 @@ module Fluent::Plugin
|
|
24
27
|
|
25
28
|
def configure(conf)
|
26
29
|
super
|
27
|
-
|
30
|
+
if (!@tag && !@remove_tag_prefix && !@remove_tag_suffix && !@add_tag_prefix && !@add_tag_suffix)
|
31
|
+
raise Fluent::ConfigError, "foo_bar: missing remove_tag_prefix, remove_tag_suffix, add_tag_prefix or add_tag_suffix."
|
32
|
+
end
|
28
33
|
if @name_keys
|
29
34
|
@name_keys = @name_keys.split(',')
|
30
35
|
end
|