sensu-plugins-postgres 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/metrics-postgres-query.rb +2 -2
- data/lib/sensu-plugins-postgres/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f4d41d9e8567ba94e8cb7d38d378107be1c0248
|
4
|
+
data.tar.gz: dd0d8501a6cd9949edfd85a228ad6b833f006c28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b34af9e59c3b2c36c9f79b1e21fea903fae0e44a6d936bbb09005332bbd80ff5f6885661870029b3dd64ed4671a0962eac7e3931673a4d08963cd3da58445f0
|
7
|
+
data.tar.gz: 3bc35fd2142c7988c23cb1b7b18196e69111c127dea1f78a5eebd1a29212d3c5a168714596efd866d7a2ebf550e37ab2a74f5b50956ce69b2691b65e88d4e18e
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
-
|
114
|
+
res.values.each do |row|
|
115
115
|
output "#{config[:scheme]}.#{row[0]}", row[1]
|
116
116
|
end
|
117
117
|
else
|
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.
|
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-
|
11
|
+
date: 2017-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|