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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: baeb62358c9349a2904c11c0c25c012b7dbb19e2
4
- data.tar.gz: e17e4c20282552b0e59f4259a738dc93a22663f5
3
+ metadata.gz: bb32b29fe582ff05c9d25ce34b2d237bfc8dde4c
4
+ data.tar.gz: 801c70d64604e479a9c23fe384307d1a5fb17c51
5
5
  SHA512:
6
- metadata.gz: 8f6b64895c93880452b3dd639cd0efb89f47a7c224d921d2e13dc188f477f02ae2b02ef222f46e2d5a6cca0c76c7a514942f2c1f4991e1bdd4da92b69e21f00b
7
- data.tar.gz: 3eabb1fae9a17849f111def7520cff939eca0f2b881263db5d4f836c0cbe2c43d45f60d0bf96bbf02af2b445afba7ce343d9e4ffd7a7f4df1820edf17742136a
6
+ metadata.gz: 80e5108376f6092b232006ba414756c9c2b12097d6cd9d5e47d1687232a1040135e842a147158ce286d43b1658f394dc343e92efe0e3b77e5a9b286093eb74b9
7
+ data.tar.gz: 723f595792aac689aadea338989456775c874d7d7af0cc49238bd76ad63eca4dc70c17ee9ae53e0b3154daf585c678cbd3df8f69a0551bec4d4f1e9633e59972
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- ## [Unreleased][unreleased]
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 = 5432
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 # rubocop:disable all
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])
@@ -2,7 +2,7 @@ module SensuPluginsPostgres
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 5
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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
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-08-05 00:00:00.000000000 Z
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.2
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.2
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