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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f2c73e2db8277365a293de76f732e4c72c5517db386e6b94c1093f2d38f959cc
4
- data.tar.gz: 15a3362d3d0e2e96fc4916dba87947a5fbfcfad51e889e225769721a323506a6
3
+ metadata.gz: a0a7cfda7cb6bd01676855165c26cb958e6519942a36011ae0284fd492b1c447
4
+ data.tar.gz: ea3b4cd611d683ee68ce85ae4501ab5a6134a4986ee865c6ead7e589a6447596
5
5
  SHA512:
6
- metadata.gz: c937ee8a172e380a8e489a5d2196edeaed1b32ffd297a8ac218cbd9d15e9aaac2ad9f386451d52b59de7b47f2f1fa6ad44ef02d39748fb04e632e8b1644944c0
7
- data.tar.gz: 7049f84047baf9b5d0c102444a5105a68ff69869e8ca3f754a8d6bd05113b7d873e3325b2efbc6a61ed2064f09e5ce447489626ef74163b052158d84876c6986
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.5.1...HEAD
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
  )
@@ -1,8 +1,8 @@
1
1
  module SensuPluginsAWS
2
2
  module Version
3
3
  MAJOR = 11
4
- MINOR = 5
5
- PATCH = 1
4
+ MINOR = 6
5
+ PATCH = 0
6
6
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-aws
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.5.1
4
+ version: 11.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors