fluent-plugin-latency 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: e04db26bee1aa442cf3d1d2fcaa0277a48f3c17f
4
- data.tar.gz: 55a9002207cefe088c92b5f06eff1101ede0a087
3
+ metadata.gz: 4b502cce2c35cb814da44e7b2b61d01b98569aa3
4
+ data.tar.gz: 0a1352d4b15e9d6aa3dab617b2083f776ad78007
5
5
  SHA512:
6
- metadata.gz: 17187e3431a42083afa94b8fc5f2d5896dd4a981b49edbbd5208d2261be0cf12d3af27af49a1c03332a234b7f88bf8b441dede5eb21051f746e8dcbf42bbe3ff
7
- data.tar.gz: 7c5e846831a25a9a21ed3917dca9848bfaa5425f283b86431b5a4fc50d8e0e2b9201221243bc2c9c5002130c5b01332e0b9aab08530803f36b5892895c46c702
6
+ metadata.gz: b29b35635c570151643f6a06c5fb046544878d75d6ce1d59f52da98580a7420d889c7d852955546a892e8ace28a851b282b854033abc0d7bbc1c563c076c0e58
7
+ data.tar.gz: 915c01177c7db1e2001ebb8043cef76524070fa9ee060360f35cfe23a9446bc52e29828fc043bf4f4b2b24f72a95b191a7bea616f8e5818977a1d72ed433a1e1
@@ -1,3 +1,9 @@
1
+ ## 0.0.2 (2014/11/26)
2
+
3
+ Change:
4
+
5
+ * Do not inherit MultiOutput, but Output
6
+
1
7
  ## 0.0.1 (2014/04/24)
2
8
 
3
9
  First release
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  Fluentd plugin to measure latency until receiving the messages.
6
6
 
7
- ## What Is It For?
7
+ ## What is this for?
8
8
 
9
9
  This plugin is to investigate the network latency, in addition, the blocking situation of input plugins.
10
10
 
@@ -12,7 +12,7 @@ In the Fluentd mechanism, input plugins usually blocks and will not receive a ne
12
12
 
13
13
  By seeing the latency, you can easily find how long the blocking situation is occuring.
14
14
 
15
- ## How It Works
15
+ ## How this works
16
16
 
17
17
  Fluentd messages include the time attribute which expresses the time of when the message is created, or when it is written in application logs.
18
18
 
@@ -27,7 +27,6 @@ Use RubyGems:
27
27
  ## Configuration
28
28
 
29
29
  Following example measures the max and average latency until receiving messages.
30
- Note that this example uses [fluent-plugin-reemit](https://github.com/sonots/fluent-plugin-reemit) to capture all messages once, measure latencies, and then re-emit.
31
30
 
32
31
  ```apache
33
32
  <source>
@@ -40,7 +39,12 @@ Note that this example uses [fluent-plugin-reemit](https://github.com/sonots/flu
40
39
  type stdout
41
40
  </match>
42
41
 
43
- # All messages come here once. Measure latencies and re-emit
42
+ # Whatever you want to do
43
+ <match rewrite.**>
44
+ type stdout
45
+ </match>
46
+
47
+ # All messages come here once.
44
48
  <match **>
45
49
  type copy
46
50
  <store>
@@ -49,14 +53,10 @@ Note that this example uses [fluent-plugin-reemit](https://github.com/sonots/flu
49
53
  interval 60
50
54
  </store>
51
55
  <store>
52
- type reemit
56
+ type rewrite
57
+ add_prefix rewrite
53
58
  </store>
54
59
  </match>
55
-
56
- # Whatever you want to do
57
- <match **>
58
- type stdout
59
- </match>
60
60
  ```
61
61
 
62
62
  Output will be like
@@ -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-latency"
6
- gem.version = "0.0.1"
6
+ gem.version = "0.0.2"
7
7
  gem.authors = ["Naotoshi Seo"]
8
8
  gem.email = "sonots@gmail.com"
9
9
  gem.homepage = "https://github.com/sonots/fluent-plugin-latency"
@@ -1,5 +1,5 @@
1
1
  module Fluent
2
- class LatencyOutput < MultiOutput
2
+ class LatencyOutput < Output
3
3
  Plugin.register_output('latency', self)
4
4
 
5
5
  # To support log_level option implemented by Fluentd v0.10.43
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-latency
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
  - Naotoshi Seo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-24 00:00:00.000000000 Z
11
+ date: 2014-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: pry
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: pry-nav
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: timecop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Fluentd plugin to measure latency until receiving the messages
@@ -100,9 +100,9 @@ executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
- - .gitignore
104
- - .rspec
105
- - .travis.yml
103
+ - ".gitignore"
104
+ - ".rspec"
105
+ - ".travis.yml"
106
106
  - CHANGELOG.md
107
107
  - Gemfile
108
108
  - LICENSE
@@ -110,7 +110,7 @@ files:
110
110
  - Rakefile
111
111
  - fluent-plugin-latency.gemspec
112
112
  - lib/fluent/plugin/out_latency.rb
113
- - spec/out_latency.rb
113
+ - spec/out_latency_spec.rb
114
114
  - spec/spec_helper.rb
115
115
  homepage: https://github.com/sonots/fluent-plugin-latency
116
116
  licenses:
@@ -122,20 +122,20 @@ require_paths:
122
122
  - lib
123
123
  required_ruby_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>='
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
127
  version: '0'
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  requirements: []
134
134
  rubyforge_project:
135
- rubygems_version: 2.0.3
135
+ rubygems_version: 2.2.2
136
136
  signing_key:
137
137
  specification_version: 4
138
138
  summary: Fluentd plugin to measure latency until receiving the messages
139
139
  test_files:
140
- - spec/out_latency.rb
140
+ - spec/out_latency_spec.rb
141
141
  - spec/spec_helper.rb