fluent-plugin-mysqlslowquerylog 0.0.2 → 0.0.3
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 +7 -0
- data/.travis.yml +12 -0
- data/README.md +1 -1
- data/fluent-plugin-mysqlslowquerylog.gemspec +6 -3
- data/lib/fluent/plugin/out_mysqlslowquerylog.rb +2 -2
- metadata +43 -20
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 66e302a905456a145cf1732341b5a1544124d41c
|
4
|
+
data.tar.gz: 0cc03824e9fe0e4ca9d6f90bcb8df7f01bb60263
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9e47d20055f708f1ba7b66c06406f8164ce5af1f36b335d900b509be26a5851dcb8c77a2355d23fcf9e7e10012305bbe3b76b75f126c477cb28820a7877604a5
|
7
|
+
data.tar.gz: 84a81e906c11a8e63972102a31b556d46f75482f60069ddfdf358d293f51119c77d2cb455fef87778cc59d2d25577585aaf5bcd57c8c357d6d5414ff621a5334
|
data/.travis.yml
ADDED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |gem|
|
4
4
|
gem.name = "fluent-plugin-mysqlslowquerylog"
|
5
|
-
gem.version = "0.0.
|
5
|
+
gem.version = "0.0.3"
|
6
6
|
gem.authors = ["Satoshi SUZUKI"]
|
7
7
|
gem.email = ["studio3104.com@gmail.com"]
|
8
8
|
gem.description = %q{Fluentd plugin to concat MySQL slowquerylog.}
|
@@ -14,6 +14,9 @@ Gem::Specification.new do |gem|
|
|
14
14
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
15
15
|
gem.require_paths = ["lib"]
|
16
16
|
|
17
|
-
gem.add_development_dependency "fluentd"
|
18
|
-
gem.
|
17
|
+
gem.add_development_dependency "fluentd", ">= 0.12.0"
|
18
|
+
gem.add_development_dependency "rake"
|
19
|
+
gem.add_development_dependency "test-unit"
|
20
|
+
|
21
|
+
gem.add_runtime_dependency "fluentd", ">= 0.12.0"
|
19
22
|
end
|
@@ -20,7 +20,7 @@ class Fluent::MySQLSlowQueryLogOutput < Fluent::Output
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def emit(tag, es, chain)
|
23
|
-
if !@slowlogs[:"#{tag}"]
|
23
|
+
if !@slowlogs[:"#{tag}"].instance_of?(Array)
|
24
24
|
@slowlogs[:"#{tag}"] = []
|
25
25
|
end
|
26
26
|
es.each do |time, record|
|
@@ -78,7 +78,7 @@ class Fluent::MySQLSlowQueryLogOutput < Fluent::Output
|
|
78
78
|
_tag = tag.clone
|
79
79
|
filter_record(_tag, time, record)
|
80
80
|
if tag != _tag
|
81
|
-
|
81
|
+
router.emit(_tag, time, record)
|
82
82
|
else
|
83
83
|
$log.warn "Can not emit message because the tag has not changed. Dropped record #{record}"
|
84
84
|
end
|
metadata
CHANGED
@@ -1,48 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-mysqlslowquerylog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Satoshi SUZUKI
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2018-01-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: fluentd
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.12.0
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.12.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
20
32
|
- !ruby/object:Gem::Version
|
21
33
|
version: '0'
|
22
34
|
type: :development
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
|
-
- -
|
38
|
+
- - ">="
|
28
39
|
- !ruby/object:Gem::Version
|
29
40
|
version: '0'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
|
-
name:
|
42
|
+
name: test-unit
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- -
|
45
|
+
- - ">="
|
36
46
|
- !ruby/object:Gem::Version
|
37
47
|
version: '0'
|
38
|
-
type: :
|
48
|
+
type: :development
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- -
|
52
|
+
- - ">="
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: fluentd
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.12.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.12.0
|
46
69
|
description: Fluentd plugin to concat MySQL slowquerylog.
|
47
70
|
email:
|
48
71
|
- studio3104.com@gmail.com
|
@@ -50,7 +73,8 @@ executables: []
|
|
50
73
|
extensions: []
|
51
74
|
extra_rdoc_files: []
|
52
75
|
files:
|
53
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
54
78
|
- Gemfile
|
55
79
|
- LICENSE.txt
|
56
80
|
- README.md
|
@@ -61,27 +85,26 @@ files:
|
|
61
85
|
- test/plugin/test_out_mysqlslowquerylog.rb
|
62
86
|
homepage: https://github.com/studio3104/fluent-plugin-mysqlslowquerylog
|
63
87
|
licenses: []
|
88
|
+
metadata: {}
|
64
89
|
post_install_message:
|
65
90
|
rdoc_options: []
|
66
91
|
require_paths:
|
67
92
|
- lib
|
68
93
|
required_ruby_version: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
94
|
requirements:
|
71
|
-
- -
|
95
|
+
- - ">="
|
72
96
|
- !ruby/object:Gem::Version
|
73
97
|
version: '0'
|
74
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
75
|
-
none: false
|
76
99
|
requirements:
|
77
|
-
- -
|
100
|
+
- - ">="
|
78
101
|
- !ruby/object:Gem::Version
|
79
102
|
version: '0'
|
80
103
|
requirements: []
|
81
104
|
rubyforge_project:
|
82
|
-
rubygems_version:
|
105
|
+
rubygems_version: 2.6.14
|
83
106
|
signing_key:
|
84
|
-
specification_version:
|
107
|
+
specification_version: 4
|
85
108
|
summary: Fluentd plugin to concat MySQL slowquerylog.
|
86
109
|
test_files:
|
87
110
|
- test/helper.rb
|