fluent-plugin-postgresql-csvlog 0.7.3 → 0.8.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47a1cb4850459062da5931ab99d4180d53caed98985096be75a485a688e386c1
|
|
4
|
+
data.tar.gz: 3d529ac068bed5cebed3e8ac49bcfb2f6f1e9d2d4ea9427582d1bdfc26ae22d3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 927aba45b777040f1c5cb8b1e2044b0c2b8aca3b8590f1a7499285b835adfd15f276ef3ca3740193da61925beb22e0374314c87c482983007d2dd6cec5910ae0
|
|
7
|
+
data.tar.gz: 6e75b2674e449122ad5c991a7a39429c0f0bfeff0de37d7b059673f964baccbf8ba2249680d529332b3a40f2e369627d1813de378f9774fc07370cd884748749
|
data/.gitlab-ci.yml
CHANGED
|
@@ -39,13 +39,20 @@ itest_pg13:
|
|
|
39
39
|
variables:
|
|
40
40
|
POSTGRES_SERVER_VERSION: 13
|
|
41
41
|
|
|
42
|
+
# integration tests for postgres 14
|
|
43
|
+
itest_pg14:
|
|
44
|
+
extends: .iteration_test
|
|
45
|
+
variables:
|
|
46
|
+
POSTGRES_SERVER_VERSION: 14
|
|
47
|
+
|
|
42
48
|
end_to_end_verification_test:
|
|
43
|
-
image: docker:
|
|
49
|
+
image: docker:20.10.16
|
|
44
50
|
services:
|
|
45
|
-
- docker:
|
|
51
|
+
- docker:20.10.16-dind
|
|
46
52
|
tags:
|
|
47
53
|
- gitlab-org-docker
|
|
48
54
|
variables:
|
|
55
|
+
DOCKER_HOST: tcp://docker:2375
|
|
49
56
|
DOCKER_TLS_CERTDIR: ""
|
|
50
57
|
before_script:
|
|
51
58
|
- apk add --no-cache docker-compose
|
data/docker-compose.yml
CHANGED
|
@@ -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.
|
|
5
|
+
s.version = '0.8.0'
|
|
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'
|
|
@@ -28,11 +28,11 @@ module Fluent::Plugin
|
|
|
28
28
|
wait_event_type,
|
|
29
29
|
wait_event,
|
|
30
30
|
xact_start,
|
|
31
|
-
extract(epoch from clock_timestamp() - xact_start) xact_age_s,
|
|
31
|
+
CAST(extract(epoch from clock_timestamp() - xact_start) AS double precision) xact_age_s,
|
|
32
32
|
query_start,
|
|
33
|
-
extract(epoch from clock_timestamp() - query_start) query_age_s,
|
|
33
|
+
CAST(extract(epoch from clock_timestamp() - query_start) AS double precision) query_age_s,
|
|
34
34
|
state_change,
|
|
35
|
-
extract(epoch from clock_timestamp() - state_change) state_age_s,
|
|
35
|
+
CAST(extract(epoch from clock_timestamp() - state_change) AS double precision) state_age_s,
|
|
36
36
|
state,
|
|
37
37
|
query
|
|
38
38
|
FROM pg_catalog.pg_stat_activity
|
|
@@ -110,6 +110,11 @@ class PgStatActivityInputIntegrationTest < Test::Unit::TestCase
|
|
|
110
110
|
assert_false record['query_length'].nil?
|
|
111
111
|
assert_false record['query'].nil?
|
|
112
112
|
assert_false record['fingerprint'].nil?
|
|
113
|
+
|
|
114
|
+
assert_true record['xact_age_s'].class == Float
|
|
115
|
+
assert_true record['query_age_s'].class == Float
|
|
116
|
+
assert_true record['state_age_s'].class == Float
|
|
117
|
+
assert_empty record.values.select { |val| val.class == BigDecimal }
|
|
113
118
|
end
|
|
114
119
|
end
|
|
115
120
|
end
|
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.
|
|
4
|
+
version: 0.8.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- stanhu
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-
|
|
11
|
+
date: 2023-08-27 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.4.
|
|
143
|
+
rubygems_version: 3.4.19
|
|
144
144
|
signing_key:
|
|
145
145
|
specification_version: 4
|
|
146
146
|
summary: fluentd plugins to work with PostgreSQL CSV logs
|