fluent-plugin-graphite 0.0.1 → 0.0.2
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 +4 -4
- data/.travis.yml +12 -0
- data/README.md +1 -1
- data/fluent-plugin-graphite.gemspec +1 -1
- data/lib/fluent/plugin/out_graphite.rb +3 -2
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 566f9af4251ccc88ad85c9e3872eb59dae08ce98
|
|
4
|
+
data.tar.gz: 508c80b8173612c93375c7e03bc423ce4904d07b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36f6036886b5a928c0f6a0a7152f6d9bd4a0b2bf174001029912a0700c694b11bd1963200c5af70cf1655656e7d4448546915af00f1ab6714d82335e438a2332
|
|
7
|
+
data.tar.gz: ce78cac1d59cb888f7b28a944a7312bc5b0085a94d32cb9ed58ec9a24267b8c701b580b977434731927a24cd7cc7dd5a08391101c7f84fd6f552b6d426ddb770
|
data/.travis.yml
ADDED
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Fluent::Plugin::Graphite
|
|
1
|
+
# Fluent::Plugin::Graphite [](https://travis-ci.org/studio3104/fluent-plugin-graphite) [](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.
|
|
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
|
|
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.
|
|
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
|