fluent-plugin-rds-mysql-slow-log 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -1
- data/fluent-plugin-rds-mysql-slow-log.gemspec +1 -1
- data/lib/fluent/plugin/in_rds_mysql_slow_log.rb +3 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e0a699c12abf9d3cc2561b5824b98c7369f2055
|
4
|
+
data.tar.gz: f6e12a8ac64a0bde9adfe69613295f47f9c82978
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffecc0aeb404b94be8f235aeb0ec324b9205feff87f9703903f9952d05128260553a443ccca1a74fa779bdc27cf2b2ef80568c83f8241d4f712198455d5f8b29
|
7
|
+
data.tar.gz: b1f2f5eb77d87a325a44363496d43a25ef5aa3f2d005f5a4c2978d6fb589f5fa3075a44ca26f81e81cf8090b850b7d4e87cf11458c1f46e08fa8c936f97ac0fc
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'fluent-plugin-rds-mysql-slow-log'
|
8
|
-
spec.version = '0.
|
8
|
+
spec.version = '0.3.0'
|
9
9
|
spec.authors = ['Satoshi Matsumoto']
|
10
10
|
spec.email = ['kaorimatz@gmail.com']
|
11
11
|
|
@@ -14,7 +14,6 @@ module Fluent
|
|
14
14
|
config_param :from_encoding, :string, default: nil, desc: 'The encoding of sql_text data.'
|
15
15
|
config_param :keep_time_key, :bool, default: false, desc: 'Keep the time key in an emitted record.'
|
16
16
|
config_param :null_empty_string, :bool, default: false, desc: 'Convert empty strings to null.'
|
17
|
-
config_param :rotate_interval, :time, default: nil, desc: 'The interval in seconds between subsequent rotations of slow_log tables across servers.'
|
18
17
|
config_param :tag_prefix, :string, default: nil, desc: 'The prefix of the tag.'
|
19
18
|
config_section :server, param_name: :servers, required: true do
|
20
19
|
config_param :host, :string, desc: 'The IP address or hostname of the server.'
|
@@ -82,7 +81,6 @@ module Fluent
|
|
82
81
|
|
83
82
|
def on_timer
|
84
83
|
@servers.each.with_index do |(tag, server), i|
|
85
|
-
sleep @rotate_interval if @rotate_interval && !i.nonzero?
|
86
84
|
emit_slow_log(tag, server)
|
87
85
|
end
|
88
86
|
end
|
@@ -152,8 +150,9 @@ module Fluent
|
|
152
150
|
end
|
153
151
|
|
154
152
|
def time_to_microseconds(time)
|
155
|
-
hour, min, sec, usec = time.scanf('%
|
156
|
-
|
153
|
+
hour, min, sec, usec = time.scanf('%4d:%2u:%2u.%6u')
|
154
|
+
sign = hour < 0 ? -1 : 1
|
155
|
+
(hour.abs * 3_600_000_000 + min * 60_000_000 + sec * 1_000_000 + usec.to_i) * sign
|
157
156
|
end
|
158
157
|
|
159
158
|
def process_integer(record)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-rds-mysql-slow-log
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Satoshi Matsumoto
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|