sensu-plugins-postgres 1.1.0 → 1.1.1

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: f6bfd7b45d75e036b101f45450c252abf49d653b
4
- data.tar.gz: e923b0caa1619da1cce35d8e09f53ea6dd94fd9a
3
+ metadata.gz: 9f4d41d9e8567ba94e8cb7d38d378107be1c0248
4
+ data.tar.gz: dd0d8501a6cd9949edfd85a228ad6b833f006c28
5
5
  SHA512:
6
- metadata.gz: 49df212d0fbf4c219a7e6b7b2b68375e6060151300f834ae3975e5614143f65492a8930975be15c58cb98c90f08ca8e4331f44d6d8e9a59c639f4ba88409f5aa
7
- data.tar.gz: ddb21faebe8214bf2a55cb9e37b8e426f376110b8c3bcbd66830b277187b19c4abdf0f909bf6ca129e9c52a3d9b06b5811a7224677571b97c8eb0e46342b2a6b
6
+ metadata.gz: 7b34af9e59c3b2c36c9f79b1e21fea903fae0e44a6d936bbb09005332bbd80ff5f6885661870029b3dd64ed4671a0962eac7e3931673a4d08963cd3da58445f0
7
+ data.tar.gz: 3bc35fd2142c7988c23cb1b7b18196e69111c127dea1f78a5eebd1a29212d3c5a168714596efd866d7a2ebf550e37ab2a74f5b50956ce69b2691b65e88d4e18e
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.1.1] - 2017-04-24
9
+ ### Fixed
10
+ - metrics-postgres-query.rb: Restored default value to only return first value in query. (@Micasou)
11
+
8
12
  ## [1.1.0] - 2017-04-20
9
13
  ### Added
10
14
  - metrics-postgres-query.rb: Add option to return multi row queries. (@Micasou)
@@ -87,7 +91,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
87
91
  ### Added
88
92
  - initial release
89
93
 
90
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.0...HEAD
94
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.1...HEAD
95
+ [1.1.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.1.0...1.1.1
91
96
  [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.0.1...1.1.0
92
97
  [1.0.1]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/1.0.0...1.0.1
93
98
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-postgres/compare/0.1.1...1.0.0
@@ -107,11 +107,11 @@ class MetricsPostgresQuery < Sensu::Plugin::Metric::CLI::Graphite
107
107
  value = if config[:count_tuples]
108
108
  res.ntuples
109
109
  else
110
- res.values
110
+ res.first.values.first
111
111
  end
112
112
 
113
113
  if config[:multirow] && !config[:count_tuples]
114
- value.each do |row|
114
+ res.values.each do |row|
115
115
  output "#{config[:scheme]}.#{row[0]}", row[1]
116
116
  end
117
117
  else
@@ -2,7 +2,7 @@ module SensuPluginsPostgres
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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: 1.1.0
4
+ version: 1.1.1
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: 2017-04-20 00:00:00.000000000 Z
11
+ date: 2017-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin