fluent-plugin-graphite 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 323b32da78572ee0adebcd5a15360a33c7f9167c
4
- data.tar.gz: 873402acdebcf5dfa4303aed4417e76f810882f4
3
+ metadata.gz: 566f9af4251ccc88ad85c9e3872eb59dae08ce98
4
+ data.tar.gz: 508c80b8173612c93375c7e03bc423ce4904d07b
5
5
  SHA512:
6
- metadata.gz: ba7ef1dac376cb6777707ba5fbacc29e2ad08f710da2d4e5d1785e80a4e056f385cd1d9ba22c7e8dd400d59d09deb156605021bac92fa690b23e7ead1f8036ef
7
- data.tar.gz: 277930b5938d4db86e83d88283d5877f770ddf0c479355dbed0233ddfd61451d387c6e405fc59b66be8e2f689043e799d00125527b87ec08f3a934acdb2b4255
6
+ metadata.gz: 36f6036886b5a928c0f6a0a7152f6d9bd4a0b2bf174001029912a0700c694b11bd1963200c5af70cf1655656e7d4448546915af00f1ab6714d82335e438a2332
7
+ data.tar.gz: ce78cac1d59cb888f7b28a944a7312bc5b0085a94d32cb9ed58ec9a24267b8c701b580b977434731927a24cd7cc7dd5a08391101c7f84fd6f552b6d426ddb770
data/.travis.yml ADDED
@@ -0,0 +1,12 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1.1
7
+
8
+ before_install:
9
+ - gem update bundler
10
+
11
+ script:
12
+ - bundle exec rake test
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Fluent::Plugin::Graphite
1
+ # Fluent::Plugin::Graphite [![Build Status](https://travis-ci.org/studio3104/fluent-plugin-graphite.png)](https://travis-ci.org/studio3104/fluent-plugin-graphite) [![Code Climate](https://codeclimate.com/github/studio3104/fluent-plugin-graphite.png)](https://codeclimate.com/github/studio3104/fluent-plugin-graphite)
2
2
 
3
3
  TODO: Write a gem description
4
4
 
@@ -3,7 +3,7 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = 'fluent-plugin-graphite'
6
- gem.version = '0.0.1'
6
+ gem.version = '0.0.2'
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'
@@ -67,11 +67,12 @@ class Fluent::GraphiteOutput < Fluent::Output
67
67
  return nil if filtered_record.empty?
68
68
 
69
69
  metrics = {}
70
+ tag = tag.sub(/\.$/, '') # may include a dot at the end of the emit_tag fluent-mixin-rewrite-tag-name returns. remove it.
70
71
  filtered_record.each do |k, v|
71
72
  key = case @tag_for
72
73
  when 'ignore' then k
73
- when 'prefix' then tag + k
74
- when 'suffix' then k + '.' + tag.sub(/\.$/, '') # include a dot at the end of the emit_tag fluent-mixin-rewrite-tag-name returns. remove it.
74
+ when 'prefix' then tag + '.' + k
75
+ when 'suffix' then k + '.' + tag
75
76
  end
76
77
 
77
78
  key = key.gsub(/(\s|\/)+/, '_') # cope with in the case of containing symbols or spaces in the key of the record like in_dstat.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Satoshi SUZUKI
@@ -73,6 +73,7 @@ extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
75
  - ".gitignore"
76
+ - ".travis.yml"
76
77
  - Gemfile
77
78
  - LICENSE
78
79
  - README.md