fluent-plugin-postgresql-csvlog 0.7.1 → 0.7.3

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: 5fd63aaf4685f342a67b1ae1393d6f0ab7c4fab2d76b0e1b8f65a20d544c7fbf
4
- data.tar.gz: faca443f2ff5b0bba6baa960918619e21ba03d86055cbb6a38d27278e56d903c
3
+ metadata.gz: f0693e1f78345ee808b7ad9b58c76c6ab97863c6f3e5beb12207bf3bffae5761
4
+ data.tar.gz: 0ad321b2d4c797c110c690afd60018eb2cc3d37b6bf2f735ea475285bf0022b5
5
5
  SHA512:
6
- metadata.gz: de5e28ed56dc6fcfeb7f0631538e796561556cadd3d5b03a3510cd4f575291c51bf9c335d1f49415569a7c8bdd217e1cb22a411258fe6cbeed023cad15cb2232
7
- data.tar.gz: 176678ab47f25823b1dbce6bec33e4d86ee5c02ae72a7370541d399d91a0aa79cd9b575fb4a75a3fe53f0cf4400b7b55cd0102e071de7c52279e6b936f03ec20
6
+ metadata.gz: 582c67cf06d3a6c94378408e76712c130d91fdb7ae239deb272dbcaf97f7ba509d243dc45e3f525ecdb3da82271b0f94f1f2183a59b7fb09e054c66844fb0c63
7
+ data.tar.gz: 88ba2dc6cc7490a08389ca7d471f78f4069b5218e604d11064a83d76e2abc4216110f1012f0840e71b7682d5223fc3298c8cb8f3c29c3e6b9a400881bda24ef0
@@ -2,7 +2,7 @@ $:.push File.expand_path('lib', __dir__)
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'fluent-plugin-postgresql-csvlog'
5
- s.version = '0.7.1'
5
+ s.version = '0.7.3'
6
6
  s.authors = ['stanhu']
7
7
  s.email = ['stanhu@gmail.com']
8
8
  s.homepage = 'https://gitlab.com/gitlab-org/fluent-plugins/fluent-plugin-postgresql-csvlog'
@@ -25,6 +25,8 @@ module Fluent::Plugin
25
25
  host(client_addr) as client_addr,
26
26
  client_hostname,
27
27
  client_port,
28
+ wait_event_type,
29
+ wait_event,
28
30
  xact_start,
29
31
  extract(epoch from clock_timestamp() - xact_start) xact_age_s,
30
32
  query_start,
@@ -33,7 +35,7 @@ module Fluent::Plugin
33
35
  extract(epoch from clock_timestamp() - state_change) state_age_s,
34
36
  state,
35
37
  query
36
- FROM pg_stat_activity
38
+ FROM pg_catalog.pg_stat_activity
37
39
  WHERE usename IS NOT NULL
38
40
  SQL
39
41
 
@@ -75,6 +77,8 @@ module Fluent::Plugin
75
77
  'client_addr' => row['client_addr'],
76
78
  'client_hostname' => row['client_hostname'],
77
79
  'client_port' => row['client_port'],
80
+ 'wait_event_type' => row['wait_event_type'],
81
+ 'wait_event' => row['wait_event'],
78
82
  'xact_start' => row['xact_start']&.iso8601(3),
79
83
  'xact_age_s' => row['xact_age_s'],
80
84
  'query_start' => row['query_start']&.iso8601(3),
@@ -53,6 +53,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
53
53
  'client_addr' => '172.17.0.1',
54
54
  'client_hostname' => nil,
55
55
  'client_port' => 60182,
56
+ 'wait_event' => 'relation',
57
+ 'wait_event_type' => 'Lock',
56
58
  'xact_start' => Time.parse('2021-07-23 12:55:25 +0000'),
57
59
  'xact_age_s' => 0.001884,
58
60
  'query_start' => Time.parse('2021-07-23 12:55:25 +0000'),
@@ -83,6 +85,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
83
85
  'state_change' => '2021-07-23T12:55:25.000+00:00',
84
86
  'usename' => 'testuser',
85
87
  'usesysid' => 10,
88
+ 'wait_event' => 'relation',
89
+ 'wait_event_type' => 'Lock',
86
90
  'xact_age_s' => 0.001884,
87
91
  'xact_start' => '2021-07-23T12:55:25.000+00:00'
88
92
  }
@@ -112,6 +116,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
112
116
  'state_change' => nil,
113
117
  'usename' => nil,
114
118
  'usesysid' => nil,
119
+ 'wait_event' => nil,
120
+ 'wait_event_type' => nil,
115
121
  'xact_age_s' => nil,
116
122
  'xact_start' => nil
117
123
  }
@@ -131,6 +137,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
131
137
  'client_addr' => '172.17.0.1',
132
138
  'client_hostname' => nil,
133
139
  'client_port' => 60182,
140
+ 'wait_event' => 'relation',
141
+ 'wait_event_type' => 'Lock',
134
142
  'xact_start' => Time.parse('2021-07-23 12:55:25 +0000'),
135
143
  'xact_age_s' => 0.001884,
136
144
  'query_start' => Time.parse('2021-07-23 12:55:25 +0000'),
@@ -161,6 +169,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
161
169
  'state_change' => '2021-07-23T12:55:25.000+00:00',
162
170
  'usename' => 'testuser',
163
171
  'usesysid' => 10,
172
+ 'wait_event' => 'relation',
173
+ 'wait_event_type' => 'Lock',
164
174
  'xact_age_s' => 0.001884,
165
175
  'xact_start' => '2021-07-23T12:55:25.000+00:00'
166
176
  }
@@ -180,6 +190,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
180
190
  'client_addr' => '172.17.0.1',
181
191
  'client_hostname' => nil,
182
192
  'client_port' => 60182,
193
+ 'wait_event' => 'relation',
194
+ 'wait_event_type' => 'Lock',
183
195
  'xact_start' => Time.parse('2021-07-23 12:55:25 +0000'),
184
196
  'xact_age_s' => 0.001884,
185
197
  'query_start' => Time.parse('2021-07-23 12:55:25 +0000'),
@@ -213,6 +225,8 @@ class PgStatActivityInputTest < Test::Unit::TestCase
213
225
  'state_change' => '2021-07-23T12:55:25.000+00:00',
214
226
  'usename' => 'testuser',
215
227
  'usesysid' => 10,
228
+ 'wait_event' => 'relation',
229
+ 'wait_event_type' => 'Lock',
216
230
  'xact_age_s' => 0.001884,
217
231
  'xact_start' => '2021-07-23T12:55:25.000+00:00'
218
232
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-postgresql-csvlog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - stanhu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-10 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -140,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  - !ruby/object:Gem::Version
141
141
  version: '0'
142
142
  requirements: []
143
- rubygems_version: 3.2.28
143
+ rubygems_version: 3.4.10
144
144
  signing_key:
145
145
  specification_version: 4
146
146
  summary: fluentd plugins to work with PostgreSQL CSV logs