sensu-plugins-postgres 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +6 -2
- data/bin/metric-postgres-graphite.rb +7 -1
- data/bin/metric-postgres-statstable.rb +1 -1
- data/lib/sensu-plugins-postgres/version.rb +1 -1
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb32b29fe582ff05c9d25ce34b2d237bfc8dde4c
|
4
|
+
data.tar.gz: 801c70d64604e479a9c23fe384307d1a5fb17c51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80e5108376f6092b232006ba414756c9c2b12097d6cd9d5e47d1687232a1040135e842a147158ce286d43b1658f394dc343e92efe0e3b77e5a9b286093eb74b9
|
7
|
+
data.tar.gz: 723f595792aac689aadea338989456775c874d7d7af0cc49238bd76ad63eca4dc70c17ee9ae53e0b3154daf585c678cbd3df8f69a0551bec4d4f1e9633e59972
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -3,13 +3,17 @@ 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
|
-
##
|
6
|
+
## Unreleased
|
7
|
+
|
8
|
+
## [0.0.5] - 2015-10-06
|
9
|
+
### Changed
|
10
|
+
- updated pg gem to 0.18.3
|
11
|
+
Added port cli option to postgres-graphite.rb.
|
7
12
|
|
8
13
|
## [0.0.4] - 2015-08-04
|
9
14
|
### Changed
|
10
15
|
- general cleanup, no code changes
|
11
16
|
|
12
|
-
|
13
17
|
## [0.0.3] - 2015-07-14
|
14
18
|
### Changed
|
15
19
|
- updated sensu-plugin gem to 1.2.0
|
@@ -38,10 +38,16 @@ class CheckpostgresReplicationStatus < Sensu::Plugin::Metric::CLI::Graphite
|
|
38
38
|
long: '--scheme SCHEME',
|
39
39
|
default: "#{Socket.gethostname}.postgres.replication_lag"
|
40
40
|
|
41
|
+
option :port,
|
42
|
+
description: 'Database port',
|
43
|
+
short: '-P PORT',
|
44
|
+
long: '--port PORT',
|
45
|
+
default: 5432
|
46
|
+
|
41
47
|
def run
|
42
48
|
@dbmaster = config[:master_host]
|
43
49
|
@dbslave = config[:slave_host]
|
44
|
-
@dbport =
|
50
|
+
@dbport = config[:port]
|
45
51
|
@dbname = config[:database]
|
46
52
|
@dbusername = config[:user]
|
47
53
|
@password = config[:pass]
|
@@ -59,7 +59,7 @@ class PostgresStatsTableMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
59
59
|
long: '--scheme SCHEME',
|
60
60
|
default: "#{Socket.gethostname}.postgresql"
|
61
61
|
|
62
|
-
def run
|
62
|
+
def run
|
63
63
|
timestamp = Time.now.to_i
|
64
64
|
|
65
65
|
con = PG::Connection.new(config[:hostname], config[:port], nil, nil, config[:db], config[:user], config[:password])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-
|
33
|
+
date: 2015-10-06 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: sensu-plugin
|
@@ -52,14 +52,14 @@ dependencies:
|
|
52
52
|
requirements:
|
53
53
|
- - '='
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: 0.18.
|
55
|
+
version: 0.18.3
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - '='
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 0.18.
|
62
|
+
version: 0.18.3
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: bundler
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|