fluent-plugin-proxysql-query-log 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -12
- data/fluent-plugin-proxysql-query-log.gemspec +1 -1
- data/lib/fluent/plugin/in_proxysql_query_log/watcher.rb +3 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36a178ba29b69f740d07e635907516dca37a02f9112814c0634db97e077dbd4e
|
4
|
+
data.tar.gz: cb3a073e86d59a10c13ea7a3dd802f43183bba41f84abd96222c0e74f8f3c917
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4fe508b526a5cc977bea07bdfdb15bacee3635afdf69d8da35cadbb8737fefbc3750e5f04ab439928e57f3e548687a012d7a794e09573f76ac30b3b47ffaf64
|
7
|
+
data.tar.gz: e72b977809bc2dccbec52eea077383e528f4d39a5d8fb7ff89a45aa33639f62eedac38930b1677549db07eaf9b010acdf36aab340fe98734ab4ddd6a5db82ce0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent-plugin-proxysql-query-log (0.3.
|
4
|
+
fluent-plugin-proxysql-query-log (0.3.3)
|
5
5
|
cool.io
|
6
6
|
fluentd (>= 0.14.2, < 2)
|
7
7
|
proxysql_query_log-parser
|
@@ -10,30 +10,32 @@ GEM
|
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
12
|
cool.io (1.5.3)
|
13
|
-
|
14
|
-
|
13
|
+
dig_rb (1.0.1)
|
14
|
+
ffi (1.9.25)
|
15
|
+
fluent-plugin-systemd (1.0.1)
|
15
16
|
fluentd (>= 0.14.11, < 2)
|
16
|
-
systemd-journal (~> 1.3)
|
17
|
-
fluentd (
|
17
|
+
systemd-journal (~> 1.3.2)
|
18
|
+
fluentd (1.2.5)
|
18
19
|
cool.io (>= 1.4.5, < 2.0.0)
|
20
|
+
dig_rb (~> 1.0.0)
|
19
21
|
http_parser.rb (>= 0.5.1, < 0.7.0)
|
20
22
|
msgpack (>= 0.7.0, < 2.0.0)
|
21
23
|
serverengine (>= 2.0.4, < 3.0.0)
|
22
24
|
sigdump (~> 0.2.2)
|
23
|
-
strptime (
|
25
|
+
strptime (>= 0.2.2, < 1.0.0)
|
24
26
|
tzinfo (~> 1.0)
|
25
27
|
tzinfo-data (~> 1.0)
|
26
28
|
yajl-ruby (~> 1.0)
|
27
29
|
http_parser.rb (0.6.0)
|
28
30
|
msgpack (1.2.4)
|
29
|
-
power_assert (1.1.
|
30
|
-
proxysql_query_log-parser (0.0.
|
31
|
+
power_assert (1.1.3)
|
32
|
+
proxysql_query_log-parser (0.0.3)
|
31
33
|
rake (12.3.1)
|
32
|
-
serverengine (2.0.
|
34
|
+
serverengine (2.0.7)
|
33
35
|
sigdump (~> 0.2.2)
|
34
36
|
sigdump (0.2.4)
|
35
|
-
strptime (0.
|
36
|
-
systemd-journal (1.3.
|
37
|
+
strptime (0.2.3)
|
38
|
+
systemd-journal (1.3.3)
|
37
39
|
ffi (~> 1.9)
|
38
40
|
test-unit (3.2.8)
|
39
41
|
power_assert
|
@@ -42,7 +44,7 @@ GEM
|
|
42
44
|
thread_safe (~> 0.1)
|
43
45
|
tzinfo-data (1.2018.5)
|
44
46
|
tzinfo (>= 1.0.0)
|
45
|
-
yajl-ruby (1.4.
|
47
|
+
yajl-ruby (1.4.1)
|
46
48
|
|
47
49
|
PLATFORMS
|
48
50
|
ruby
|
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = "fluent-plugin-proxysql-query-log"
|
6
|
-
spec.version = "0.3.
|
6
|
+
spec.version = "0.3.3"
|
7
7
|
spec.authors = ["r_takaishi"]
|
8
8
|
spec.email = ["ryo.takaishi.0@gmail.com"]
|
9
9
|
|
@@ -32,13 +32,11 @@ module Fluent
|
|
32
32
|
@io = File.open(@path)
|
33
33
|
seek(@path)
|
34
34
|
|
35
|
-
while
|
35
|
+
while true
|
36
|
+
raw_total_bytes = @io.read(8)
|
36
37
|
return unless raw_total_bytes
|
37
38
|
|
38
|
-
|
39
|
-
@io.seek(7, IO::SEEK_CUR)
|
40
|
-
raw = @io.read(total_bytes)
|
41
|
-
query = @parser.parse(StringIO.new(raw, 'r+'))
|
39
|
+
query = @parser.parse(@io)
|
42
40
|
@router.emit(@tag, query.start_time/1000/1000, record(query))
|
43
41
|
@pos_storage.put(@path, @io.pos)
|
44
42
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-proxysql-query-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- r_takaishi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|