gitlab-fluent-plugin-redis-slowlog 0.1.0 → 0.1.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c1ce26c15184cd4542891a3175434b81ed44b295a6ffd2a8c96222d4fd16da8
|
4
|
+
data.tar.gz: 632613b3d6b036a6f94c66bea02dc08d5dff119202b1614f5df4ff1efd3c1c58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aea063934370511db16b64743463868b909d4685c141e0d56365f2edb604688125851d815b5c241f0a721be42e17785aea0f6ce862e726b050e1812d70a0bd2a
|
7
|
+
data.tar.gz: 99ff9bf22f51fc3b5d6bffc55db8c3979b67bc41a4ef0ba69bb4ab136332a6de938694f39a9f4fc4409a2f41dcfdcb84a14bc8aec6fc353544a14dd9578713c2
|
@@ -85,6 +85,7 @@ module Fluent
|
|
85
85
|
next if log.id <= last_id
|
86
86
|
|
87
87
|
log_hash = { "id" => log.id,
|
88
|
+
"time" => Time.at(log.timestamp.to_i).utc.iso8601(3),
|
88
89
|
"exec_time" => log.exec_time_us,
|
89
90
|
"command" => log.command }
|
90
91
|
router.emit(tag, Fluent::EventTime.new(log.timestamp.to_i), log_hash)
|
@@ -149,6 +149,7 @@ describe Fluent::Plugin::RedisSlowlogInput do
|
|
149
149
|
|
150
150
|
def log_entry(slowlog_entry)
|
151
151
|
{ "id" => slowlog_entry.first,
|
152
|
+
"time" => Time.at(slowlog_entry[1].to_i).utc.iso8601(3),
|
152
153
|
"exec_time" => slowlog_entry[2],
|
153
154
|
"command" => slowlog_entry.last }
|
154
155
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab-fluent-plugin-redis-slowlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Van Landuyt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|