sensu-plugins-postgres 2.3.2 → 4.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +41 -1
- data/bin/check-postgres-alive.rb +3 -1
- data/bin/check-postgres-connections.rb +3 -1
- data/bin/check-postgres-query.rb +9 -0
- data/bin/check-postgres-replication.rb +12 -6
- data/bin/metric-postgres-connections.rb +8 -6
- data/bin/metric-postgres-dbsize.rb +8 -6
- data/bin/metric-postgres-graphite.rb +2 -0
- data/bin/metric-postgres-locks.rb +8 -6
- data/bin/metric-postgres-statsbgwriter.rb +8 -6
- data/bin/metric-postgres-statsdb.rb +2 -0
- data/bin/metric-postgres-statsio.rb +8 -6
- data/bin/metric-postgres-statstable.rb +8 -6
- data/bin/metrics-postgres-query.rb +3 -1
- data/lib/sensu-plugins-postgres.rb +2 -0
- data/lib/sensu-plugins-postgres/pgpass.rb +11 -1
- data/lib/sensu-plugins-postgres/pgutil.rb +2 -0
- data/lib/sensu-plugins-postgres/version.rb +4 -2
- metadata +30 -35
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c96168d5cf1c89531c5cf9f704a6332cee262b94f7f0468ccc51fe7d8a549f2
|
4
|
+
data.tar.gz: 72efe21b417524311cbe898606aaffb8a2e4fac9d07ad11ccab0b9eb8f4671c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c90282c49b0b8a00afbcef7d8a3aa0442e69c3eaf5d64edcfcccf07d3ea8127c55faa770f05f4bd7fea025ee767ad3afc4d1b85a503645b53519d2d8498153c
|
7
|
+
data.tar.gz: ee9cccd264eacc1e41ece5e6ba6bafb2e21f18f7c3d65ea853f29611517eab71303ada9e654efea35975f94b140000c6fc4b0b6c2e939ec7c6ee8d510d96ccd9
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,41 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [4.0.2] - 2020-06-02
|
9
|
+
- Fixed `# frozen_string_literal: true` does not play nicely with mixlib-cli.
|
10
|
+
|
11
|
+
## [4.0.1] - 2020-04-20
|
12
|
+
### Fixed
|
13
|
+
- Fixing asset build directives.
|
14
|
+
|
15
|
+
## [4.0.0] - 2020-01-09
|
16
|
+
|
17
|
+
### Breaking Changes
|
18
|
+
- Update `sensu-plugin` dependency from `~> 1.2` to `~> 4.0` you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17), [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04), and [2.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#v200---2017-03-29)
|
19
|
+
- `check-postgres-replication.rb`: both `--slave-host` and `master-host` arguments are now required flags where previously they had localhost defaults (@phumpal)
|
20
|
+
|
21
|
+
### Fixed
|
22
|
+
- `check-postgres-replication.rb`: fix condition where connection timeout is considered a boolean rather than an integer value (@majormoses) (@phumpal) (@VeselaHouba)
|
23
|
+
- `check-postgres-replication.rb`: critical if the master and slave are same (@phumpal)
|
24
|
+
|
25
|
+
### Added
|
26
|
+
- `check-postgres-query.rb`: Add `-r`, `--regex-pattern` to match query result against (@jindraj)
|
27
|
+
|
28
|
+
### Changes
|
29
|
+
- Updated development dependency to bundler ~> 2.1
|
30
|
+
- Updated development dependency to rake ~> 13.0
|
31
|
+
- Updated development dependency to test-kitchen ~> 1.25.0
|
32
|
+
- Updated runtime dependency to 'pg' '1.2.1' from 1.1
|
33
|
+
- Updated runtime dependency 'dentaku' '3.3.4' from 2.04
|
34
|
+
|
35
|
+
## [3.0.0] - 2019-11-20
|
36
|
+
### Breaking Changes
|
37
|
+
- Removed ruby < 2.4 since these Rubies are EOL (@phumpal)
|
38
|
+
|
39
|
+
## [2.4.0] - 2019-10-04
|
40
|
+
### Added
|
41
|
+
- Support comments in pgpass file. Keeps previous behavior and adds support for ignoring leading comments (@phumpal)
|
42
|
+
|
8
43
|
## [2.3.2] - 2019-03-12
|
9
44
|
### Fixed
|
10
45
|
- Support for PostgreSQL v10+ replication function names fixed in `bin/metric-postgres-graphite.rb` (@jfineberg)
|
@@ -178,7 +213,12 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
178
213
|
### Added
|
179
214
|
- initial release
|
180
215
|
|
181
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/
|
216
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.2...HEAD
|
217
|
+
[4.0.2]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.1...4.0.2
|
218
|
+
[4.0.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/4.0.0...4.0.1
|
219
|
+
[4.0.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/3.0.0...4.0.0
|
220
|
+
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.4.0...3.0.0
|
221
|
+
[2.4.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.3.2...2.4.0
|
182
222
|
[2.3.2]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.3.1...2.3.2
|
183
223
|
[2.3.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.3.0...2.3.1
|
184
224
|
[2.3.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/2.2.2...2.3.0
|
data/bin/check-postgres-alive.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# check-postgres-alive
|
4
6
|
#
|
@@ -86,6 +88,6 @@ class CheckPostgres < Sensu::Plugin::Check::CLI
|
|
86
88
|
rescue PG::Error => e
|
87
89
|
critical "Error message: #{e.error.split("\n").first}"
|
88
90
|
ensure
|
89
|
-
con
|
91
|
+
con&.close
|
90
92
|
end
|
91
93
|
end
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# check-postgres-connections
|
4
6
|
#
|
@@ -114,7 +116,7 @@ class CheckPostgresConnections < Sensu::Plugin::Check::CLI
|
|
114
116
|
unknown "Unable to query PostgreSQL: #{e.message}"
|
115
117
|
end
|
116
118
|
|
117
|
-
percent = (current_conns
|
119
|
+
percent = (current_conns / max_conns.to_f * 100).to_i
|
118
120
|
|
119
121
|
if config[:use_percentage]
|
120
122
|
message = "PostgreSQL connections at #{percent}%, #{current_conns} out of #{available_conns} connections"
|
data/bin/check-postgres-query.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# check-postgres-query
|
4
6
|
#
|
@@ -73,6 +75,11 @@ class CheckPostgresQuery < Sensu::Plugin::Check::CLI
|
|
73
75
|
long: '--query QUERY',
|
74
76
|
required: true
|
75
77
|
|
78
|
+
option :regex_pattern,
|
79
|
+
description: 'Regex pattern to match on query results and alert on if it does not match',
|
80
|
+
short: '-r REGEX',
|
81
|
+
long: '--regex-pattern REGEX'
|
82
|
+
|
76
83
|
option :check_tuples,
|
77
84
|
description: 'Check against the number of tuples (rows) returned by the query',
|
78
85
|
short: '-t',
|
@@ -125,6 +132,8 @@ class CheckPostgresQuery < Sensu::Plugin::Check::CLI
|
|
125
132
|
critical "Results: #{res.values}"
|
126
133
|
elsif config[:warning] && calc.evaluate(config[:warning], value: value)
|
127
134
|
warning "Results: #{res.values}"
|
135
|
+
elsif config[:regex_pattern] && (res.getvalue(0, 0) !~ /#{config[:regex_pattern]}/)
|
136
|
+
critical "Query result #{res.getvalue(0, 0)} doesn't match configured regex #{config[:regex_pattern]}"
|
128
137
|
else
|
129
138
|
ok 'Query OK'
|
130
139
|
end
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# check-postgres-replication
|
4
6
|
#
|
@@ -41,13 +43,14 @@ class CheckPostgresReplicationStatus < Sensu::Plugin::Check::CLI
|
|
41
43
|
option(:master_host,
|
42
44
|
short: '-m',
|
43
45
|
long: '--master-host=HOST',
|
46
|
+
required: true,
|
44
47
|
description: 'PostgreSQL master HOST')
|
45
48
|
|
46
49
|
option(:slave_host,
|
47
50
|
short: '-s',
|
48
51
|
long: '--slave-host=HOST',
|
49
|
-
|
50
|
-
|
52
|
+
required: true,
|
53
|
+
description: 'PostgreSQL slave HOST')
|
51
54
|
|
52
55
|
option(:port,
|
53
56
|
short: '-P',
|
@@ -92,10 +95,11 @@ class CheckPostgresReplicationStatus < Sensu::Plugin::Check::CLI
|
|
92
95
|
proc: lambda { |s| s.to_i }) # rubocop:disable Lambda
|
93
96
|
|
94
97
|
option(:timeout,
|
95
|
-
short: '-T',
|
96
|
-
long: '--timeout',
|
97
|
-
default:
|
98
|
-
description: 'Connection timeout (seconds)'
|
98
|
+
short: '-T TIMEOUT',
|
99
|
+
long: '--timeout=TIMEOUT',
|
100
|
+
default: 2,
|
101
|
+
description: 'Connection timeout (seconds)',
|
102
|
+
proc: proc(&:to_i))
|
99
103
|
|
100
104
|
include Pgpass
|
101
105
|
include PgUtil
|
@@ -103,6 +107,8 @@ class CheckPostgresReplicationStatus < Sensu::Plugin::Check::CLI
|
|
103
107
|
def run
|
104
108
|
ssl_mode = config[:ssl] ? 'require' : 'prefer'
|
105
109
|
|
110
|
+
critical 'Master and slave cannot be the same host' if config[:master_host] == config[:slave_host]
|
111
|
+
|
106
112
|
# Establishing connection to the master
|
107
113
|
pgpass
|
108
114
|
conn_master = PG.connect(host: config[:master_host],
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metric-postgres-connections
|
4
6
|
#
|
@@ -81,12 +83,12 @@ class PostgresStatsDBMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
81
83
|
def run
|
82
84
|
timestamp = Time.now.to_i
|
83
85
|
pgpass
|
84
|
-
con
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
con = PG.connect(host: config[:hostname],
|
87
|
+
dbname: config[:database],
|
88
|
+
user: config[:user],
|
89
|
+
password: config[:password],
|
90
|
+
port: config[:port],
|
91
|
+
connect_timeout: config[:timeout])
|
90
92
|
request = [
|
91
93
|
"select case when count(*) = 1 then 'waiting' else",
|
92
94
|
"'case when wait_event_type is null then false else true end' end as wait_col",
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metric-postgres-dbsize
|
4
6
|
#
|
@@ -81,12 +83,12 @@ class PostgresStatsDBMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
81
83
|
def run
|
82
84
|
timestamp = Time.now.to_i
|
83
85
|
pgpass
|
84
|
-
con
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
86
|
+
con = PG.connect(host: config[:hostname],
|
87
|
+
dbname: config[:database],
|
88
|
+
user: config[:user],
|
89
|
+
password: config[:password],
|
90
|
+
port: config[:port],
|
91
|
+
connect_timeout: config[:timeout])
|
90
92
|
request = [
|
91
93
|
"select pg_database_size('#{config[:database]}')"
|
92
94
|
]
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metric-postgres-locks
|
4
6
|
#
|
@@ -83,12 +85,12 @@ class PostgresStatsDBMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
83
85
|
|
84
86
|
locks_per_type = Hash.new(0)
|
85
87
|
pgpass
|
86
|
-
con
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
88
|
+
con = PG.connect(host: config[:hostname],
|
89
|
+
dbname: config[:database],
|
90
|
+
user: config[:user],
|
91
|
+
password: config[:password],
|
92
|
+
port: config[:port],
|
93
|
+
connect_timeout: config[:timeout])
|
92
94
|
request = [
|
93
95
|
'SELECT mode, count(mode) AS count FROM pg_locks',
|
94
96
|
"WHERE database = (SELECT oid FROM pg_database WHERE datname = '#{config[:database]}')",
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metric-postgres-statsbgwriter
|
4
6
|
#
|
@@ -76,12 +78,12 @@ class PostgresStatsDBMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
76
78
|
def run
|
77
79
|
timestamp = Time.now.to_i
|
78
80
|
pgpass
|
79
|
-
con
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
81
|
+
con = PG.connect(host: config[:hostname],
|
82
|
+
dbname: 'postgres',
|
83
|
+
user: config[:user],
|
84
|
+
password: config[:password],
|
85
|
+
port: config[:port],
|
86
|
+
connect_timeout: config[:timeout])
|
85
87
|
request = [
|
86
88
|
'select checkpoints_timed, checkpoints_req,',
|
87
89
|
'checkpoint_write_time, checkpoint_sync_time,',
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metric-postgres-statsio
|
4
6
|
#
|
@@ -88,12 +90,12 @@ class PostgresStatsIOMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
88
90
|
def run
|
89
91
|
timestamp = Time.now.to_i
|
90
92
|
pgpass
|
91
|
-
con
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
con = PG.connect(host: config[:hostname],
|
94
|
+
dbname: config[:database],
|
95
|
+
user: config[:user],
|
96
|
+
password: config[:password],
|
97
|
+
port: config[:port],
|
98
|
+
connect_timeout: config[:timeout])
|
97
99
|
request = [
|
98
100
|
'select sum(heap_blks_read) as heap_blks_read, sum(heap_blks_hit) as heap_blks_hit,',
|
99
101
|
'sum(idx_blks_read) as idx_blks_read, sum(idx_blks_hit) as idx_blks_hit,',
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metric-postgres-statstable
|
4
6
|
#
|
@@ -88,12 +90,12 @@ class PostgresStatsTableMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
88
90
|
def run
|
89
91
|
timestamp = Time.now.to_i
|
90
92
|
pgpass
|
91
|
-
con
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
93
|
+
con = PG.connect(host: config[:hostname],
|
94
|
+
dbname: config[:database],
|
95
|
+
user: config[:user],
|
96
|
+
password: config[:password],
|
97
|
+
port: config[:port],
|
98
|
+
connect_timeout: config[:timeout])
|
97
99
|
request = [
|
98
100
|
'select sum(seq_scan) as seq_scan, sum(seq_tup_read) as seq_tup_read,',
|
99
101
|
'sum(idx_scan) as idx_scan, sum(idx_tup_fetch) as idx_tup_fetch,',
|
@@ -1,4 +1,6 @@
|
|
1
1
|
#! /usr/bin/env ruby
|
2
|
+
# frozen_string_literal: false
|
3
|
+
|
2
4
|
#
|
3
5
|
# metrics-postgres-query
|
4
6
|
#
|
@@ -114,7 +116,7 @@ class MetricsPostgresQuery < Sensu::Plugin::Metric::CLI::Graphite
|
|
114
116
|
value = if config[:count_tuples]
|
115
117
|
res.ntuples
|
116
118
|
else
|
117
|
-
res.first
|
119
|
+
res.first&.values&.first
|
118
120
|
end
|
119
121
|
|
120
122
|
if config[:multirow] && !config[:count_tuples]
|
@@ -1,7 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Pgpass
|
4
|
+
def read_pgpass(pg_pass_file)
|
5
|
+
File.readlines(pg_pass_file).each do |line|
|
6
|
+
return line.strip.split(':') unless line.start_with?('#')
|
7
|
+
|
8
|
+
next
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
2
12
|
def pgpass
|
3
13
|
if File.file?(config[:pgpass])
|
4
|
-
pgpass = Hash[%i[hostname port database user password].zip(
|
14
|
+
pgpass = Hash[%i[hostname port database user password].zip(read_pgpass(config[:pgpass]))]
|
5
15
|
pgpass[:database] = nil if pgpass[:database] == '*'
|
6
16
|
pgpass.each do |k, v|
|
7
17
|
config[k] ||= v
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '4.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '4.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dentaku
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 3.3.4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 3.3.4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pg
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 1.2.2
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 1.2.2
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: bundler
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '1
|
61
|
+
version: '2.1'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '1
|
68
|
+
version: '2.1'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: codeclimate-test-reporter
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,20 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '2.
|
132
|
-
- - "<"
|
133
|
-
- !ruby/object:Gem::Version
|
134
|
-
version: 2.3.0
|
131
|
+
version: '2.4'
|
135
132
|
type: :development
|
136
133
|
prerelease: false
|
137
134
|
version_requirements: !ruby/object:Gem::Requirement
|
138
135
|
requirements:
|
139
136
|
- - "~>"
|
140
137
|
- !ruby/object:Gem::Version
|
141
|
-
version: '2.
|
142
|
-
- - "<"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: 2.3.0
|
138
|
+
version: '2.4'
|
145
139
|
- !ruby/object:Gem::Dependency
|
146
140
|
name: pry
|
147
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,14 +156,14 @@ dependencies:
|
|
162
156
|
requirements:
|
163
157
|
- - "~>"
|
164
158
|
- !ruby/object:Gem::Version
|
165
|
-
version: '
|
159
|
+
version: '13.0'
|
166
160
|
type: :development
|
167
161
|
prerelease: false
|
168
162
|
version_requirements: !ruby/object:Gem::Requirement
|
169
163
|
requirements:
|
170
164
|
- - "~>"
|
171
165
|
- !ruby/object:Gem::Version
|
172
|
-
version: '
|
166
|
+
version: '13.0'
|
173
167
|
- !ruby/object:Gem::Dependency
|
174
168
|
name: redcarpet
|
175
169
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,42 +198,42 @@ dependencies:
|
|
204
198
|
requirements:
|
205
199
|
- - "~>"
|
206
200
|
- !ruby/object:Gem::Version
|
207
|
-
version: 0.
|
201
|
+
version: 0.79.0
|
208
202
|
type: :development
|
209
203
|
prerelease: false
|
210
204
|
version_requirements: !ruby/object:Gem::Requirement
|
211
205
|
requirements:
|
212
206
|
- - "~>"
|
213
207
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.
|
208
|
+
version: 0.79.0
|
215
209
|
- !ruby/object:Gem::Dependency
|
216
210
|
name: serverspec
|
217
211
|
requirement: !ruby/object:Gem::Requirement
|
218
212
|
requirements:
|
219
213
|
- - "~>"
|
220
214
|
- !ruby/object:Gem::Version
|
221
|
-
version: 2.
|
215
|
+
version: 2.41.5
|
222
216
|
type: :development
|
223
217
|
prerelease: false
|
224
218
|
version_requirements: !ruby/object:Gem::Requirement
|
225
219
|
requirements:
|
226
220
|
- - "~>"
|
227
221
|
- !ruby/object:Gem::Version
|
228
|
-
version: 2.
|
222
|
+
version: 2.41.5
|
229
223
|
- !ruby/object:Gem::Dependency
|
230
224
|
name: test-kitchen
|
231
225
|
requirement: !ruby/object:Gem::Requirement
|
232
226
|
requirements:
|
233
227
|
- - "~>"
|
234
228
|
- !ruby/object:Gem::Version
|
235
|
-
version: 1.
|
229
|
+
version: 1.25.0
|
236
230
|
type: :development
|
237
231
|
prerelease: false
|
238
232
|
version_requirements: !ruby/object:Gem::Requirement
|
239
233
|
requirements:
|
240
234
|
- - "~>"
|
241
235
|
- !ruby/object:Gem::Version
|
242
|
-
version: 1.
|
236
|
+
version: 1.25.0
|
243
237
|
- !ruby/object:Gem::Dependency
|
244
238
|
name: yard
|
245
239
|
requirement: !ruby/object:Gem::Requirement
|
@@ -263,18 +257,18 @@ description: |-
|
|
263
257
|
more.
|
264
258
|
email: "<sensu-users@googlegroups.com>"
|
265
259
|
executables:
|
266
|
-
- metric-postgres-
|
267
|
-
- metric-postgres-
|
260
|
+
- metric-postgres-dbsize.rb
|
261
|
+
- metric-postgres-connections.rb
|
262
|
+
- metric-postgres-statsdb.rb
|
268
263
|
- check-postgres-connections.rb
|
269
|
-
- check-postgres-query.rb
|
270
264
|
- metric-postgres-statstable.rb
|
265
|
+
- metric-postgres-graphite.rb
|
266
|
+
- metrics-postgres-query.rb
|
267
|
+
- check-postgres-query.rb
|
271
268
|
- metric-postgres-statsio.rb
|
272
|
-
- metric-postgres-connections.rb
|
273
|
-
- metric-postgres-dbsize.rb
|
274
269
|
- check-postgres-alive.rb
|
270
|
+
- metric-postgres-locks.rb
|
275
271
|
- metric-postgres-statsbgwriter.rb
|
276
|
-
- metrics-postgres-query.rb
|
277
|
-
- metric-postgres-statsdb.rb
|
278
272
|
- check-postgres-replication.rb
|
279
273
|
extensions: []
|
280
274
|
extra_rdoc_files: []
|
@@ -317,14 +311,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
317
311
|
requirements:
|
318
312
|
- - ">="
|
319
313
|
- !ruby/object:Gem::Version
|
320
|
-
version: 2.
|
314
|
+
version: 2.4.0
|
321
315
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
322
316
|
requirements:
|
323
317
|
- - ">="
|
324
318
|
- !ruby/object:Gem::Version
|
325
319
|
version: '0'
|
326
320
|
requirements: []
|
327
|
-
|
321
|
+
rubyforge_project:
|
322
|
+
rubygems_version: 2.7.7
|
328
323
|
signing_key:
|
329
324
|
specification_version: 4
|
330
325
|
summary: Sensu plugins for postgres
|