adp-fluent-plugin-graphite 0.0.6 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 052c0e2d0e66ba05cb94a995f040c436ada3cad27d1386850d2aca4659152189
4
- data.tar.gz: d6333c8cbead5da773384aa63149518d1b9fb8dfbac2dbcec35b1127b1688171
3
+ metadata.gz: 2cf1fde65bf527feec4f5bdcb3a1ac13c4e3479f7695a1662bd0484e4759ba9d
4
+ data.tar.gz: 95dc1c0ec5507f58d0d1d98b7ce9979ae2760f2926010b971e72bf4acfc56313
5
5
  SHA512:
6
- metadata.gz: fd9dd5a45669dec38a3d7498070bd7ac2ad56b8a7c9d150668956270bcb8d4c3a0934f26681929277189afdcdded2c8a8583ac3046b5289c781e2ee567c2d54e
7
- data.tar.gz: df3548004608c62f59da0cc3cea317ec3115c685dd7cb419b2182d16337d8cca4ce57209d25fcc0f3bd509c303d294db1be4f3437ac70217ea9dff2dcfb2d044
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'
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
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi SUZUKI