fluent-plugin-statsite 0.0.2 → 0.0.3

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: 2e12dccb3b7db8188b8fc47b913d1ee260773d1e
4
- data.tar.gz: f09fa661f3b430f1bcc2f1b9b03f3cc4876989ce
3
+ metadata.gz: b6059da4a4125aeea69ef03347f56317fa4b5d8a
4
+ data.tar.gz: 8794355360c98abd1a354dce70186f30ddc02c46
5
5
  SHA512:
6
- metadata.gz: 0259eae4b813fa352773f84dbc465008463d4be9f9aa5e2c7f6dc4fa8c31a2e291fe2974b6a0de81cb856e5fbd0f6eae3601b3d0ba07cf7127457fbd42955219
7
- data.tar.gz: 55b89401b72406cbcbfe3942b5ad5318e897a2e05c21c68d7836d9b7085ec22bc244c7fe6585fa3ee24c0a6e864ff141bd6409d87bf8d6a6047527a57b62c1de
6
+ metadata.gz: 20e3f8b875b41781b482a8797b7e4134052e3978184145edaff4ebaf5d6fdc06b9be94703911692652a99d7914e68205aedc75b14eef27d7bcce0be76a48cfd7
7
+ data.tar.gz: 7edcf9f85c7937bed2485e888c6e5b8105659fb3a822b799bf1c9198ed3c77964daced8d942cb5f155f93e8fc3bc99b7258f98555b5915347c2bfcd3323297d0
data/.travis.yml ADDED
@@ -0,0 +1,26 @@
1
+ language: ruby
2
+
3
+ rvm:
4
+ - 1.9.3
5
+ - 2.0.0
6
+ - 2.1
7
+ - ruby-head
8
+ - rbx-2
9
+
10
+ os:
11
+ - linux
12
+ - osx
13
+
14
+ branches:
15
+ only:
16
+ - master
17
+
18
+ gemfile:
19
+ - Gemfile
20
+
21
+ script: bundle exec rake
22
+
23
+ matrix:
24
+ allow_failures:
25
+ - rvm: ruby-head
26
+ - rvm: rbx-2
data/README.md CHANGED
@@ -26,7 +26,7 @@ It is strongly recommended to use '[V1 config format](http://docs.fluentd.org/ar
26
26
 
27
27
  ```
28
28
  <match **>
29
- type statsite
29
+ type statsite_filter
30
30
  tag statsite
31
31
  metrics [
32
32
  "${status}:1|c",
data/example.conf CHANGED
@@ -3,7 +3,7 @@
3
3
  </source>
4
4
 
5
5
  <match event.*>
6
- type statsite
6
+ type statsite_filter
7
7
  tag statsite
8
8
  metrics [
9
9
  "k1:1|kv",
@@ -17,6 +17,7 @@
17
17
  ]
18
18
  statsite_path "vendor/statsite/statsite"
19
19
  statsite_flush_interval 1s
20
+ flush_interval 1s
20
21
  timer_eps 0.01
21
22
  set_eps 0.02
22
23
  child_respawn 5
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-statsite"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["OKUNO Akihiro"]
9
9
  spec.email = ["choplin.choplin@gmail.com"]
10
10
  spec.summary = %q{Fluentd statsite plugin}
@@ -7,10 +7,10 @@ require 'tempfile'
7
7
  require 'timeout'
8
8
 
9
9
  module Fluent
10
- class StatsiteOutput < Fluent::BufferedOutput
10
+ class StatsiteFilterOutput < Fluent::BufferedOutput
11
11
  include Fluent::StatsitePlugin
12
12
 
13
- Fluent::Plugin.register_output('statsite', self)
13
+ Fluent::Plugin.register_output('statsite_filter', self)
14
14
 
15
15
  # TODO: should be configurable?
16
16
  CONFIG_VALIDATION_WAIT = 0.1
@@ -1,11 +1,11 @@
1
1
  require 'helper'
2
- require 'fluent/plugin/out_statsite'
2
+ require 'fluent/plugin/out_statsite_filter'
3
3
 
4
- class Fluent::StatsiteOutput
4
+ class Fluent::StatsiteFilterOutput
5
5
  attr_reader :respawns
6
6
  end
7
7
 
8
- class StatsiteOutputTest < Test::Unit::TestCase
8
+ class StatsiteFilterOutputTest < Test::Unit::TestCase
9
9
  def setup
10
10
  Fluent::Test.setup
11
11
  end
@@ -33,7 +33,7 @@ class StatsiteOutputTest < Test::Unit::TestCase
33
33
  ]
34
34
 
35
35
  def create_driver(conf = CONFIG)
36
- Fluent::Test::OutputTestDriver.new(Fluent::StatsiteOutput).configure(conf, true)
36
+ Fluent::Test::OutputTestDriver.new(Fluent::StatsiteFilterOutput).configure(conf, true)
37
37
  end
38
38
 
39
39
  def test_configure
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-statsite
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - OKUNO Akihiro
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-20 00:00:00.000000000 Z
11
+ date: 2014-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -61,13 +61,14 @@ extra_rdoc_files: []
61
61
  files:
62
62
  - ".gitignore"
63
63
  - ".gitmodules"
64
+ - ".travis.yml"
64
65
  - Gemfile
65
66
  - LICENSE.txt
66
67
  - README.md
67
68
  - Rakefile
68
69
  - example.conf
69
70
  - fluent-plugin-statsite.gemspec
70
- - lib/fluent/plugin/out_statsite.rb
71
+ - lib/fluent/plugin/out_statsite_filter.rb
71
72
  - lib/fluent/plugin/statsite/child_process.rb
72
73
  - lib/fluent/plugin/statsite/format.rb
73
74
  - lib/fluent/plugin/statsite/histogram.rb
@@ -76,7 +77,7 @@ files:
76
77
  - test/test_formatter.rb
77
78
  - test/test_histogram.rb
78
79
  - test/test_metric.rb
79
- - test/test_out_statsite.rb
80
+ - test/test_out_statsite_filter.rb
80
81
  - test/test_parser.rb
81
82
  homepage: https://github.com/choplin/fluent-plugin-statsite
82
83
  licenses:
@@ -107,5 +108,5 @@ test_files:
107
108
  - test/test_formatter.rb
108
109
  - test/test_histogram.rb
109
110
  - test/test_metric.rb
110
- - test/test_out_statsite.rb
111
+ - test/test_out_statsite_filter.rb
111
112
  - test/test_parser.rb