sensu-plugins-postgres 0.0.7 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/CHANGELOG.md +14 -3
- data/README.md +2 -2
- data/bin/check-postgres-connections.rb +119 -0
- data/bin/check-postgres-query.rb +6 -6
- data/bin/metric-postgres-graphite.rb +1 -1
- data/bin/metrics-postgres-query.rb +6 -6
- data/lib/sensu-plugins-postgres/version.rb +2 -2
- metadata +46 -68
- checksums.yaml.gz.sig +0 -3
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -2
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
MjY5MTU2MzcxODk3OWIzNDcyZGQxOTdmMGYyODFhOWM2Mjc1ZGFkMA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MTQ2NzVmMGZjYzg2NmE2NmUxOGI1NjY3NWI0YjRiZjM2N2JiZTUxMA==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
Zjk3MTExMzQ0MGQwMTAzNjFhNTBlMTY5Zjc4YmFmZDA0OGNkZGEyNmMzMWFm
|
10
|
+
NjZlYjZlNjMyZTgyM2ZhYTAxMmQ2OTIxNjNjYjE2YzljMzVlYzViMWFlNWQ2
|
11
|
+
ZjAxMzIxY2MyYmYzZjBkNzU4YzE3YmViNzUxMmEyYjE2MjQ5YjU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZWY2MjNjNjU5OWVjODA2MTZmOTIzODQ5ZTNjMmQ2NzViYWNiODk5YzE4NTFi
|
14
|
+
Y2RlZmQ4NWE2Njc1NzJhMTQ4ZTkzMDdkMmJlN2Y5ZWQxNTg3YjU0ZDk0MTE5
|
15
|
+
MDFhZjUxYWYwZDJlZTdlMzhjN2Y1YTc4OTQ0OTgwODI0OTkxNDE=
|
data/CHANGELOG.md
CHANGED
@@ -3,7 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
3
3
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
5
5
|
|
6
|
-
## Unreleased
|
6
|
+
## [Unreleased]
|
7
|
+
|
8
|
+
## [0.1.0] - 2016-03-09
|
9
|
+
### Added
|
10
|
+
- Add new plugin `check-postgres-connections` that checks the number of connections to a DB
|
7
11
|
|
8
12
|
## [0.0.7] - 2015-12-10
|
9
13
|
### Changed
|
@@ -30,7 +34,6 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
30
34
|
- updated sensu-plugin gem to 1.2.0
|
31
35
|
|
32
36
|
## [0.0.2] - 2015-06-03
|
33
|
-
|
34
37
|
### Fixed
|
35
38
|
- added binstubs
|
36
39
|
|
@@ -38,6 +41,14 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
38
41
|
- removed cruft from /lib
|
39
42
|
|
40
43
|
## 0.0.1 - 2015-04-30
|
41
|
-
|
42
44
|
### Added
|
43
45
|
- initial release
|
46
|
+
|
47
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.1.0...HEAD
|
48
|
+
[0.1.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.7...0.1.0
|
49
|
+
[0.0.7]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.6...0.0.7
|
50
|
+
[0.0.6]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.5...0.0.6
|
51
|
+
[0.0.5]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.4...0.0.5
|
52
|
+
[0.0.4]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.3...0.0.4
|
53
|
+
[0.0.3]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.2...0.0.3
|
54
|
+
[0.0.2]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.0.1...0.0.2
|
data/README.md
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
## Sensu-Plugins-postgres
|
2
2
|
|
3
|
-
[
|
3
|
+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-postgres.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-postgres)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-postgres.svg)](http://badge.fury.io/rb/sensu-plugins-postgres)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-postgres/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-postgres)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-postgres/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-postgres)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-postgres.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-postgres)
|
8
|
-
[![Codeship Status for sensu-plugins/sensu-plugins-postgres](https://codeship.com/projects/985aceb0-e89b-0132-adeb-62885e5c211b/status?branch=master)](https://codeship.com/projects/82843)
|
9
8
|
|
10
9
|
## Functionality
|
11
10
|
|
12
11
|
## Files
|
13
12
|
* bin/check-postgres-alive.rb
|
13
|
+
* bin/check-postgres-connections.rb
|
14
14
|
* bin/metric-postgres-dbsize.rb
|
15
15
|
* bin/metric-postgres-statsbgwriter.rb
|
16
16
|
* bin/metric-postgres-statstable.rb
|
@@ -0,0 +1,119 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
# check-postgres-connections
|
4
|
+
#
|
5
|
+
# DESCRIPTION:
|
6
|
+
# This plugin checks the number of connections to a postgresql database and
|
7
|
+
# alerts when the number or percent crosses a threshold. Defaults to checking
|
8
|
+
# number of connections unless the --percentage flag is used in which case the
|
9
|
+
# percentage of max connections is checked.
|
10
|
+
#
|
11
|
+
# OUTPUT:
|
12
|
+
# plain-text
|
13
|
+
#
|
14
|
+
# PLATFORMS:
|
15
|
+
# Linux
|
16
|
+
#
|
17
|
+
# DEPENDENCIES:
|
18
|
+
# gem: pg
|
19
|
+
# gem: sensu-plugin
|
20
|
+
#
|
21
|
+
# USAGE:
|
22
|
+
# # warn when connections hit 250, critical when 400
|
23
|
+
# check-postgres-connections.rb -u db_user -p db_pass -h db_host -d db -w 250 -c 400
|
24
|
+
# # warn when connections hit 80%, critical when 95%
|
25
|
+
# check-postgres-connections.rb -u db_user -p db_pass -h db_host -d db -w 80 -c 95 --percentage
|
26
|
+
#
|
27
|
+
# NOTES:
|
28
|
+
#
|
29
|
+
# LICENSE:
|
30
|
+
# Copyright 2016, Eric Heydrick <eheydrick@gmail.com>
|
31
|
+
# Released under the same terms as Sensu (the MIT license); see LICENSE
|
32
|
+
# for details.
|
33
|
+
#
|
34
|
+
|
35
|
+
require 'sensu-plugin/check/cli'
|
36
|
+
require 'pg'
|
37
|
+
|
38
|
+
class CheckPostgresConnections < Sensu::Plugin::Check::CLI
|
39
|
+
option :user,
|
40
|
+
description: 'Postgres User',
|
41
|
+
short: '-u USER',
|
42
|
+
long: '--user USER'
|
43
|
+
|
44
|
+
option :password,
|
45
|
+
description: 'Postgres Password',
|
46
|
+
short: '-p PASS',
|
47
|
+
long: '--password PASS'
|
48
|
+
|
49
|
+
option :hostname,
|
50
|
+
description: 'Hostname to login to',
|
51
|
+
short: '-h HOST',
|
52
|
+
long: '--hostname HOST',
|
53
|
+
default: 'localhost'
|
54
|
+
|
55
|
+
option :port,
|
56
|
+
description: 'Database port',
|
57
|
+
short: '-P PORT',
|
58
|
+
long: '--port PORT',
|
59
|
+
default: 5432
|
60
|
+
|
61
|
+
option :db,
|
62
|
+
description: 'Database name',
|
63
|
+
short: '-d DB',
|
64
|
+
long: '--db DB',
|
65
|
+
default: 'postgres'
|
66
|
+
|
67
|
+
option :warning,
|
68
|
+
description: 'Warning threshold number or % of connections. (default: 200 connections)',
|
69
|
+
short: '-w WARNING',
|
70
|
+
long: '--warning CRITICAL',
|
71
|
+
default: 200,
|
72
|
+
proc: proc(&:to_i)
|
73
|
+
|
74
|
+
option :critical,
|
75
|
+
description: 'Critical threshold number or % of connections. (default: 250 connections)',
|
76
|
+
short: '-c CRITICAL',
|
77
|
+
long: '--critical CRITICAL',
|
78
|
+
default: 250,
|
79
|
+
proc: proc(&:to_i)
|
80
|
+
|
81
|
+
option :use_percentage,
|
82
|
+
description: 'Use percentage of max connections used instead of the absolute number of connections',
|
83
|
+
short: '-a',
|
84
|
+
long: '--percentage',
|
85
|
+
boolean: true,
|
86
|
+
default: false
|
87
|
+
|
88
|
+
def run
|
89
|
+
begin
|
90
|
+
con = PG::Connection.new(config[:hostname], config[:port], nil, nil, config[:db], config[:user], config[:password])
|
91
|
+
max_conns = con.exec('SHOW max_connections').getvalue(0, 0).to_i
|
92
|
+
current_conns = con.exec('SELECT count(*) from pg_stat_activity').getvalue(0, 0).to_i
|
93
|
+
rescue PG::Error => e
|
94
|
+
unknown "Unable to query PostgreSQL: #{e.message}"
|
95
|
+
end
|
96
|
+
|
97
|
+
percent = (current_conns.to_f / max_conns.to_f * 100).to_i
|
98
|
+
|
99
|
+
if config[:use_percentage]
|
100
|
+
message = "PostgreSQL connections at #{percent}%, #{current_conns} out of #{max_conns} connections"
|
101
|
+
if percent >= config[:warning]
|
102
|
+
warning message
|
103
|
+
elsif percent >= config[:critical]
|
104
|
+
critical message
|
105
|
+
else
|
106
|
+
ok "PostgreSQL connections under threshold: #{percent}%, #{current_conns} out of #{max_conns} connections"
|
107
|
+
end
|
108
|
+
else
|
109
|
+
message = "PostgreSQL connections at #{current_conns} out of #{max_conns} connections"
|
110
|
+
if current_conns >= config[:warning]
|
111
|
+
warning message
|
112
|
+
elsif current_conns >= config[:critical]
|
113
|
+
critical message
|
114
|
+
else
|
115
|
+
ok "PostgreSQL connections under threshold: #{current_conns} out of #{max_conns} connections"
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
end
|
data/bin/check-postgres-query.rb
CHANGED
@@ -91,16 +91,16 @@ class CheckPostgresQuery < Sensu::Plugin::Check::CLI
|
|
91
91
|
def run
|
92
92
|
begin
|
93
93
|
con = PG::Connection.new(config[:hostname], config[:port], nil, nil, config[:db], config[:user], config[:password])
|
94
|
-
res = con.exec(
|
94
|
+
res = con.exec(config[:query].to_s)
|
95
95
|
rescue PG::Error => e
|
96
96
|
unknown "Unable to query PostgreSQL: #{e.message}"
|
97
97
|
end
|
98
98
|
|
99
|
-
if config[:check_tuples]
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
99
|
+
value = if config[:check_tuples]
|
100
|
+
res.ntuples
|
101
|
+
else
|
102
|
+
res.first.values.first.to_f
|
103
|
+
end
|
104
104
|
|
105
105
|
calc = Dentaku::Calculator.new
|
106
106
|
if config[:critical] && calc.evaluate(config[:critical], value: value)
|
@@ -81,16 +81,16 @@ class MetricsPostgresQuery < Sensu::Plugin::Metric::CLI::Graphite
|
|
81
81
|
def run
|
82
82
|
begin
|
83
83
|
con = PG::Connection.new(config[:hostname], config[:port], nil, nil, config[:db], config[:user], config[:password])
|
84
|
-
res = con.exec(
|
84
|
+
res = con.exec(config[:query].to_s)
|
85
85
|
rescue PG::Error => e
|
86
86
|
unknown "Unable to query PostgreSQL: #{e.message}"
|
87
87
|
end
|
88
88
|
|
89
|
-
if config[:check_tuples]
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
89
|
+
value = if config[:check_tuples]
|
90
|
+
res.ntuples
|
91
|
+
else
|
92
|
+
res.first.values.first
|
93
|
+
end
|
94
94
|
|
95
95
|
output config[:scheme], value
|
96
96
|
ok
|
metadata
CHANGED
@@ -1,51 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRIwEAYDVQQDDAltYXR0
|
14
|
-
am9uZXMxGDAWBgoJkiaJk/IsZAEZFgh5aWVsZGJvdDETMBEGCgmSJomT8ixkARkW
|
15
|
-
A2NvbTAeFw0xNTAxMjgyMTAyNTFaFw0xNjAxMjgyMTAyNTFaMEMxEjAQBgNVBAMM
|
16
|
-
CW1hdHRqb25lczEYMBYGCgmSJomT8ixkARkWCHlpZWxkYm90MRMwEQYKCZImiZPy
|
17
|
-
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyTSzVYnO
|
18
|
-
CLgyrIyT1mBQakArQyW8xhi6MlDqyzXHJGeERT790U6EgoBVeS4XoK0ptFZNR8Tf
|
19
|
-
zko0w+Nv47TarSCgkPOaxY+mxWnAVR10dOmfeLr7huiMyps+YD56/EF2FqQ3jf/+
|
20
|
-
qohENfKD91qy1ieEy+Fn7Pf74ltbNKUdkb9a9eFXQ0DQ4ip5vik7DzjQkUTj4lca
|
21
|
-
k6ArwnmHX4YDhZoYtrQJ8jVktN0/+NtA40M5qkCYHNe5tUW25b/tKVYuioxG6b2Z
|
22
|
-
oIzaZxRLxf6HVAWpCVRT/F5+/yjigkX4u++eYacfLGleXQzoK7BL65vHGMJygWEE
|
23
|
-
0TKGqFOrl/L0AQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
24
|
-
HQ4EFgQUEf6a8Td7MrSZc8ImbLFZAENPbz0wIQYDVR0RBBowGIEWbWF0dGpvbmVz
|
25
|
-
QHlpZWxkYm90LmNvbTAhBgNVHRIEGjAYgRZtYXR0am9uZXNAeWllbGRib3QuY29t
|
26
|
-
MA0GCSqGSIb3DQEBBQUAA4IBAQBbzXAYA3BVGw8DZ0YYoY1VHPNEcH5qPIApmHO8
|
27
|
-
rvSmuUT0yMEi7u00H/5uHRFf4LleGT/+sTdyXKsNPGT9kdRuQEgwi+vf7Zfvd8aX
|
28
|
-
UF/+4VkEYf/8rV8Ere6u2QaWPgApdMV6JjKr1fAwCTd8AuGXNaWItiPPMseSQzLJ
|
29
|
-
JKP4hVvbc1d+oS925B1lcBiqn2aYvElbyNAVmQPywNNqkWmvtlqj9ZVJfV5HQLdu
|
30
|
-
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
|
-
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
|
-
-----END CERTIFICATE-----
|
33
|
-
date: 2015-12-10 00:00:00.000000000 Z
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: sensu-plugin
|
37
15
|
requirement: !ruby/object:Gem::Requirement
|
38
16
|
requirements:
|
39
|
-
- -
|
17
|
+
- - ~>
|
40
18
|
- !ruby/object:Gem::Version
|
41
|
-
version: 1.2
|
19
|
+
version: '1.2'
|
42
20
|
type: :runtime
|
43
21
|
prerelease: false
|
44
22
|
version_requirements: !ruby/object:Gem::Requirement
|
45
23
|
requirements:
|
46
|
-
- -
|
24
|
+
- - ~>
|
47
25
|
- !ruby/object:Gem::Version
|
48
|
-
version: 1.2
|
26
|
+
version: '1.2'
|
49
27
|
- !ruby/object:Gem::Dependency
|
50
28
|
name: pg
|
51
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,98 +56,98 @@ dependencies:
|
|
78
56
|
name: bundler
|
79
57
|
requirement: !ruby/object:Gem::Requirement
|
80
58
|
requirements:
|
81
|
-
- -
|
59
|
+
- - ~>
|
82
60
|
- !ruby/object:Gem::Version
|
83
61
|
version: '1.7'
|
84
62
|
type: :development
|
85
63
|
prerelease: false
|
86
64
|
version_requirements: !ruby/object:Gem::Requirement
|
87
65
|
requirements:
|
88
|
-
- -
|
66
|
+
- - ~>
|
89
67
|
- !ruby/object:Gem::Version
|
90
68
|
version: '1.7'
|
91
69
|
- !ruby/object:Gem::Dependency
|
92
70
|
name: codeclimate-test-reporter
|
93
71
|
requirement: !ruby/object:Gem::Requirement
|
94
72
|
requirements:
|
95
|
-
- -
|
73
|
+
- - ~>
|
96
74
|
- !ruby/object:Gem::Version
|
97
75
|
version: '0.4'
|
98
76
|
type: :development
|
99
77
|
prerelease: false
|
100
78
|
version_requirements: !ruby/object:Gem::Requirement
|
101
79
|
requirements:
|
102
|
-
- -
|
80
|
+
- - ~>
|
103
81
|
- !ruby/object:Gem::Version
|
104
82
|
version: '0.4'
|
105
83
|
- !ruby/object:Gem::Dependency
|
106
84
|
name: github-markup
|
107
85
|
requirement: !ruby/object:Gem::Requirement
|
108
86
|
requirements:
|
109
|
-
- -
|
87
|
+
- - ~>
|
110
88
|
- !ruby/object:Gem::Version
|
111
89
|
version: '1.3'
|
112
90
|
type: :development
|
113
91
|
prerelease: false
|
114
92
|
version_requirements: !ruby/object:Gem::Requirement
|
115
93
|
requirements:
|
116
|
-
- -
|
94
|
+
- - ~>
|
117
95
|
- !ruby/object:Gem::Version
|
118
96
|
version: '1.3'
|
119
97
|
- !ruby/object:Gem::Dependency
|
120
98
|
name: pry
|
121
99
|
requirement: !ruby/object:Gem::Requirement
|
122
100
|
requirements:
|
123
|
-
- -
|
101
|
+
- - ~>
|
124
102
|
- !ruby/object:Gem::Version
|
125
103
|
version: '0.10'
|
126
104
|
type: :development
|
127
105
|
prerelease: false
|
128
106
|
version_requirements: !ruby/object:Gem::Requirement
|
129
107
|
requirements:
|
130
|
-
- -
|
108
|
+
- - ~>
|
131
109
|
- !ruby/object:Gem::Version
|
132
110
|
version: '0.10'
|
133
111
|
- !ruby/object:Gem::Dependency
|
134
112
|
name: rake
|
135
113
|
requirement: !ruby/object:Gem::Requirement
|
136
114
|
requirements:
|
137
|
-
- -
|
115
|
+
- - ~>
|
138
116
|
- !ruby/object:Gem::Version
|
139
117
|
version: '10.0'
|
140
118
|
type: :development
|
141
119
|
prerelease: false
|
142
120
|
version_requirements: !ruby/object:Gem::Requirement
|
143
121
|
requirements:
|
144
|
-
- -
|
122
|
+
- - ~>
|
145
123
|
- !ruby/object:Gem::Version
|
146
124
|
version: '10.0'
|
147
125
|
- !ruby/object:Gem::Dependency
|
148
126
|
name: redcarpet
|
149
127
|
requirement: !ruby/object:Gem::Requirement
|
150
128
|
requirements:
|
151
|
-
- -
|
129
|
+
- - ~>
|
152
130
|
- !ruby/object:Gem::Version
|
153
131
|
version: '3.2'
|
154
132
|
type: :development
|
155
133
|
prerelease: false
|
156
134
|
version_requirements: !ruby/object:Gem::Requirement
|
157
135
|
requirements:
|
158
|
-
- -
|
136
|
+
- - ~>
|
159
137
|
- !ruby/object:Gem::Version
|
160
138
|
version: '3.2'
|
161
139
|
- !ruby/object:Gem::Dependency
|
162
140
|
name: rspec
|
163
141
|
requirement: !ruby/object:Gem::Requirement
|
164
142
|
requirements:
|
165
|
-
- -
|
143
|
+
- - ~>
|
166
144
|
- !ruby/object:Gem::Version
|
167
145
|
version: '3.1'
|
168
146
|
type: :development
|
169
147
|
prerelease: false
|
170
148
|
version_requirements: !ruby/object:Gem::Requirement
|
171
149
|
requirements:
|
172
|
-
- -
|
150
|
+
- - ~>
|
173
151
|
- !ruby/object:Gem::Version
|
174
152
|
version: '3.1'
|
175
153
|
- !ruby/object:Gem::Dependency
|
@@ -190,37 +168,36 @@ dependencies:
|
|
190
168
|
name: yard
|
191
169
|
requirement: !ruby/object:Gem::Requirement
|
192
170
|
requirements:
|
193
|
-
- -
|
171
|
+
- - ~>
|
194
172
|
- !ruby/object:Gem::Version
|
195
173
|
version: '0.8'
|
196
174
|
type: :development
|
197
175
|
prerelease: false
|
198
176
|
version_requirements: !ruby/object:Gem::Requirement
|
199
177
|
requirements:
|
200
|
-
- -
|
178
|
+
- - ~>
|
201
179
|
- !ruby/object:Gem::Version
|
202
180
|
version: '0.8'
|
203
|
-
description:
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
more.
|
210
|
-
email: "<sensu-users@googlegroups.com>"
|
181
|
+
description: ! "This plugin provides native PostgreSQL\n instrumentation
|
182
|
+
for monitoring and metrics\n collection, including:
|
183
|
+
service health, database\n connectivity, database locks,
|
184
|
+
replication status,\n database size, `pg_stat_bgwriter`
|
185
|
+
metrics, and\n more."
|
186
|
+
email: <sensu-users@googlegroups.com>
|
211
187
|
executables:
|
212
|
-
- metrics-postgres-query.rb
|
213
|
-
- metric-postgres-statstable.rb
|
214
|
-
- metric-postgres-statsio.rb
|
215
|
-
- metric-postgres-statsdb.rb
|
216
|
-
- metric-postgres-statsbgwriter.rb
|
217
|
-
- metric-postgres-locks.rb
|
218
|
-
- metric-postgres-graphite.rb
|
219
|
-
- metric-postgres-dbsize.rb
|
220
|
-
- metric-postgres-connections.rb
|
221
|
-
- check-postgres-replication.rb
|
222
|
-
- check-postgres-query.rb
|
223
188
|
- check-postgres-alive.rb
|
189
|
+
- check-postgres-connections.rb
|
190
|
+
- check-postgres-query.rb
|
191
|
+
- check-postgres-replication.rb
|
192
|
+
- metric-postgres-connections.rb
|
193
|
+
- metric-postgres-dbsize.rb
|
194
|
+
- metric-postgres-graphite.rb
|
195
|
+
- metric-postgres-locks.rb
|
196
|
+
- metric-postgres-statsbgwriter.rb
|
197
|
+
- metric-postgres-statsdb.rb
|
198
|
+
- metric-postgres-statsio.rb
|
199
|
+
- metric-postgres-statstable.rb
|
200
|
+
- metrics-postgres-query.rb
|
224
201
|
extensions: []
|
225
202
|
extra_rdoc_files: []
|
226
203
|
files:
|
@@ -228,6 +205,7 @@ files:
|
|
228
205
|
- LICENSE
|
229
206
|
- README.md
|
230
207
|
- bin/check-postgres-alive.rb
|
208
|
+
- bin/check-postgres-connections.rb
|
231
209
|
- bin/check-postgres-query.rb
|
232
210
|
- bin/check-postgres-replication.rb
|
233
211
|
- bin/metric-postgres-connections.rb
|
@@ -245,7 +223,7 @@ homepage: https://github.com/sensu-plugins/sensu-plugins-postgres
|
|
245
223
|
licenses:
|
246
224
|
- MIT
|
247
225
|
metadata:
|
248
|
-
maintainer:
|
226
|
+
maintainer: ! '@tas50'
|
249
227
|
development_status: active
|
250
228
|
production_status: unstable - testing recommended
|
251
229
|
release_draft: 'false'
|
@@ -257,17 +235,17 @@ require_paths:
|
|
257
235
|
- lib
|
258
236
|
required_ruby_version: !ruby/object:Gem::Requirement
|
259
237
|
requirements:
|
260
|
-
- -
|
238
|
+
- - ! '>='
|
261
239
|
- !ruby/object:Gem::Version
|
262
240
|
version: 1.9.3
|
263
241
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
264
242
|
requirements:
|
265
|
-
- -
|
243
|
+
- - ! '>='
|
266
244
|
- !ruby/object:Gem::Version
|
267
245
|
version: '0'
|
268
246
|
requirements: []
|
269
247
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.4.
|
248
|
+
rubygems_version: 2.4.5
|
271
249
|
signing_key:
|
272
250
|
specification_version: 4
|
273
251
|
summary: Sensu plugins for postgres
|
checksums.yaml.gz.sig
DELETED
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED