sensu-plugins-aws 11.5.1 → 11.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/bin/metrics-rds.rb +9 -2
- data/lib/sensu-plugins-aws/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0a7cfda7cb6bd01676855165c26cb958e6519942a36011ae0284fd492b1c447
|
4
|
+
data.tar.gz: ea3b4cd611d683ee68ce85ae4501ab5a6134a4986ee865c6ead7e589a6447596
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f15a6b096a8df0fdde39a4ea477deea6784dd53ae51fc81db366b79f5a5f04cfa21079d9b58e0c58cb4a61151578a8b3897493c27486bdb69bfd700c5cd093c
|
7
|
+
data.tar.gz: 1790f97ad255ac62ba382f157dba8a4e59000e008168f388fe78c06bd22dc46283d8233c3043081dabddd0b5cf5c8ce81dc925db65cf95df42e11ca688c29d20
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [11.6.0] - 2018-06-21
|
9
|
+
### Added
|
10
|
+
- metrics-rds.rb: adding option `--fetch-age` to allow getting metrics in the past (@multani)
|
11
|
+
|
8
12
|
## [11.5.1] - 2018-06-21
|
9
13
|
### Fixed
|
10
14
|
- check-rds-pending: Fix issue if there are no RDS instances in a region. Previously this would raise an API exception (@stevenviola)
|
@@ -482,7 +486,8 @@ WARNING: This release contains major breaking changes that will impact all user
|
|
482
486
|
### Added
|
483
487
|
- initial release
|
484
488
|
|
485
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.
|
489
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.6.0...HEAD
|
490
|
+
[11.6.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.1...11.6.0
|
486
491
|
[11.5.1]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.5.0...11.5.1
|
487
492
|
[11.5.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.2...11.5.0
|
488
493
|
[11.4.2]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/11.4.1...11.4.2
|
data/bin/metrics-rds.rb
CHANGED
@@ -57,6 +57,13 @@ class RDSMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
57
57
|
proc: proc { |a| Time.parse a },
|
58
58
|
description: 'CloudWatch metric statistics end time'
|
59
59
|
|
60
|
+
option :fetch_age,
|
61
|
+
description: 'How long ago to fetch metrics from',
|
62
|
+
short: '-f AGE',
|
63
|
+
long: '--fetch-age',
|
64
|
+
default: 0,
|
65
|
+
proc: proc(&:to_i)
|
66
|
+
|
60
67
|
option :period,
|
61
68
|
short: '-p N',
|
62
69
|
long: '--period SECONDS',
|
@@ -95,8 +102,8 @@ class RDSMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
95
102
|
value: value
|
96
103
|
}
|
97
104
|
],
|
98
|
-
start_time: config[:end_time] - config[:period],
|
99
|
-
end_time: config[:end_time],
|
105
|
+
start_time: config[:end_time] - config[:fetch_age] - config[:period],
|
106
|
+
end_time: config[:end_time] - config[:fetch_age],
|
100
107
|
statistics: [config[:statistics].to_s.capitalize],
|
101
108
|
period: config[:period]
|
102
109
|
)
|