sensu-plugins-aws 8.1.0 → 8.2.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 +12 -1
- data/lib/sensu-plugins-aws/version.rb +1 -1
- metadata +64 -64
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b0931032c4f8da410ca8c93791c46ed5ed1a405
|
4
|
+
data.tar.gz: 9b2f815e235e497dabce48338471af181ff6fec4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ae3f4a0d297431cf67009c1f4234212ae790d89d947476c1f0a9ac12fb3784074dafcb71b0d17c1fbe1e3525603930167af6f1adb6edbbee9df9caeef4e89c
|
7
|
+
data.tar.gz: 262bc5237133233f35c402a3f1cdf147634b9d44961caf537e60bd49874e1ad5cdd0de23b0be9b0bcdefc0a532b0b2209e236339f377fca99f8c103cef79587f
|
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
|
+
## [8.2.0] - 2017-09-05
|
9
|
+
### Added
|
10
|
+
- metrics-rds.rb: adding option `--scheme` to allow changing the default scheme (@julio-ogury)
|
11
|
+
|
8
12
|
## [8.1.0] - 2017-08-28
|
9
13
|
### Fixed
|
10
14
|
check-ebs-burst-limit.rb: Only compare the warning threshold if a `-w` option was specified on the command-line, as usage shows `-w` is optional. (@ivanfetch)
|
@@ -359,7 +363,8 @@ WARNING: This release contains major breaking changes that will impact all user
|
|
359
363
|
### Added
|
360
364
|
- initial release
|
361
365
|
|
362
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/8.
|
366
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/8.2.0...HEAD
|
367
|
+
[8.2.0]:https://github.com/sensu-plugins/sensu-plugins-aws/compare/8.1.0...8.2.0
|
363
368
|
[8.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/8.0.0...8.1.0
|
364
369
|
[8.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/7.1.0...8.0.0
|
365
370
|
[7.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/7.0.1...7.1.0
|
data/bin/metrics-rds.rb
CHANGED
@@ -34,6 +34,11 @@ require 'time'
|
|
34
34
|
|
35
35
|
class RDSMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
36
36
|
include Common
|
37
|
+
option :scheme,
|
38
|
+
description: 'Metric naming scheme, text to prepend to metric',
|
39
|
+
short: '-s SCHEME',
|
40
|
+
long: '--scheme SCHEME'
|
41
|
+
|
37
42
|
option :aws_region,
|
38
43
|
short: '-r AWS_REGION',
|
39
44
|
long: '--aws-region REGION',
|
@@ -120,10 +125,16 @@ class RDSMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
120
125
|
result = {}
|
121
126
|
|
122
127
|
rdsname = @db_instance.db_instance_identifier
|
128
|
+
full_scheme =
|
129
|
+
if config[:scheme].nil?
|
130
|
+
rdsname
|
131
|
+
else
|
132
|
+
config[:scheme] + '.' + rdsname
|
133
|
+
end
|
123
134
|
|
124
135
|
statistic_type.each do |key, _value|
|
125
136
|
r = cloud_watch_metric key, rdsname
|
126
|
-
result[
|
137
|
+
result[full_scheme + '.' + key] = r[:datapoints][0] unless r[:datapoints][0].nil?
|
127
138
|
end
|
128
139
|
unless result.nil?
|
129
140
|
result.each do |key, value|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-aws
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.2.0
|
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-
|
11
|
+
date: 2017-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|
@@ -256,82 +256,82 @@ description: |-
|
|
256
256
|
for EC2, SES, and SNS.
|
257
257
|
email: "<sensu-users@googlegroups.com>"
|
258
258
|
executables:
|
259
|
-
- check-
|
260
|
-
- check-
|
261
|
-
-
|
262
|
-
- check-autoscaling-cpucredits.rb
|
263
|
-
- check-beanstalk-elb-metric.rb
|
264
|
-
- check-beanstalk-health.rb
|
265
|
-
- check-certificate-expiry.rb
|
266
|
-
- check-cloudfront-tag.rb
|
267
|
-
- check-cloudwatch-alarm.rb
|
268
|
-
- check-cloudwatch-alarms.rb
|
269
|
-
- check-cloudwatch-composite-metric.rb
|
259
|
+
- check-elb-latency.rb
|
260
|
+
- check-rds-pending.rb
|
261
|
+
- metrics-rds.rb
|
270
262
|
- check-cloudwatch-metric.rb
|
271
263
|
- check-configservice-rules.rb
|
272
|
-
- check-dynamodb-capacity.rb
|
273
|
-
- check-dynamodb-throttle.rb
|
274
|
-
- check-ebs-burst-limit.rb
|
275
|
-
- check-ebs-snapshots.rb
|
276
|
-
- check-ec2-cpu_balance.rb
|
277
|
-
- check-ec2-filter.rb
|
278
|
-
- check-ec2-network.rb
|
279
|
-
- check-ecs-service-health.rb
|
280
|
-
- check-eip-allocation.rb
|
281
|
-
- check-elasticache-failover.rb
|
282
264
|
- check-elb-certs.rb
|
283
|
-
-
|
284
|
-
- check-
|
285
|
-
- check-
|
286
|
-
- check-
|
287
|
-
- check-elb-latency.rb
|
288
|
-
- check-elb-nodes.rb
|
289
|
-
- check-elb-sum-requests.rb
|
290
|
-
- check-emr-cluster.rb
|
265
|
+
- metrics-elb-full.rb
|
266
|
+
- check-ses-statistics.rb
|
267
|
+
- check-reserved-instances.rb
|
268
|
+
- check-cloudwatch-alarms.rb
|
291
269
|
- check-emr-steps.rb
|
270
|
+
- check-elb-instances-inservice.rb
|
271
|
+
- check-dynamodb-throttle.rb
|
272
|
+
- check-s3-object.rb
|
273
|
+
- handler-scale-asg-up.rb
|
274
|
+
- check-elb-health-sdk.rb
|
275
|
+
- metrics-sqs.rb
|
276
|
+
- check-vpc-nameservers.rb
|
292
277
|
- check-eni-status.rb
|
293
|
-
- check-
|
294
|
-
- check-instance-health.rb
|
295
|
-
- check-instance-reachability.rb
|
296
|
-
- check-instances-count.rb
|
297
|
-
- check-kms-key.rb
|
298
|
-
- check-rds-events.rb
|
299
|
-
- check-rds-pending.rb
|
278
|
+
- check-s3-tag.rb
|
300
279
|
- check-rds.rb
|
301
|
-
- check-
|
302
|
-
- check-
|
303
|
-
-
|
280
|
+
- check-cloudwatch-composite-metric.rb
|
281
|
+
- check-elb-sum-requests.rb
|
282
|
+
- metrics-asg.rb
|
283
|
+
- check-instances-count.rb
|
284
|
+
- check-instance-health.rb
|
285
|
+
- metrics-ec2-filter.rb
|
304
286
|
- check-route53-domain-expiration.rb
|
305
|
-
- check-
|
306
|
-
- check-
|
307
|
-
- check-
|
308
|
-
- check-
|
287
|
+
- check-elb-health.rb
|
288
|
+
- check-beanstalk-elb-metric.rb
|
289
|
+
- check-eip-allocation.rb
|
290
|
+
- check-kms-key.rb
|
291
|
+
- check-dynamodb-capacity.rb
|
292
|
+
- check-elasticache-failover.rb
|
293
|
+
- handler-ses.rb
|
294
|
+
- check-subnet-ip-consumption.rb
|
295
|
+
- check-trustedadvisor-service-limits.rb
|
296
|
+
- check-ebs-burst-limit.rb
|
297
|
+
- check-asg-instances-inservice.rb
|
298
|
+
- check-alb-target-group-health.rb
|
299
|
+
- check-autoscaling-cpucredits.rb
|
309
300
|
- check-ses-limit.rb
|
310
|
-
- check-
|
301
|
+
- check-asg-instances-created.rb
|
302
|
+
- check-certificate-expiry.rb
|
311
303
|
- check-sns-subscriptions.rb
|
304
|
+
- check-ec2-filter.rb
|
305
|
+
- metrics-s3.rb
|
306
|
+
- metrics-ses.rb
|
307
|
+
- check-ebs-snapshots.rb
|
308
|
+
- check-rds-events.rb
|
309
|
+
- check-ec2-network.rb
|
310
|
+
- metrics-ec2-count.rb
|
311
|
+
- metrics-autoscaling-instance-count.rb
|
312
|
+
- metrics-billing.rb
|
313
|
+
- check-cloudfront-tag.rb
|
314
|
+
- check-instance-reachability.rb
|
315
|
+
- check-emr-cluster.rb
|
316
|
+
- check-sensu-client.rb
|
312
317
|
- check-sqs-messages.rb
|
313
|
-
- check-subnet-ip-consumption.rb
|
314
|
-
- check-trustedadvisor-service-limits.rb
|
315
|
-
- check-vpc-nameservers.rb
|
316
318
|
- check-vpc-vpn.rb
|
319
|
+
- metrics-elb.rb
|
320
|
+
- check-elb-health-fog.rb
|
321
|
+
- check-s3-bucket.rb
|
322
|
+
- check-route.rb
|
317
323
|
- handler-ec2_node.rb
|
324
|
+
- check-instance-events.rb
|
325
|
+
- check-elb-nodes.rb
|
326
|
+
- check-ec2-cpu_balance.rb
|
327
|
+
- metrics-emr-steps.rb
|
328
|
+
- check-ecs-service-health.rb
|
329
|
+
- check-redshift-events.rb
|
330
|
+
- check-beanstalk-health.rb
|
318
331
|
- handler-scale-asg-down.rb
|
319
|
-
- handler-scale-asg-up.rb
|
320
|
-
- handler-ses.rb
|
321
332
|
- handler-sns.rb
|
322
|
-
- metrics-asg.rb
|
323
|
-
- metrics-autoscaling-instance-count.rb
|
324
|
-
- metrics-billing.rb
|
325
|
-
- metrics-ec2-count.rb
|
326
|
-
- metrics-ec2-filter.rb
|
327
333
|
- metrics-elasticache.rb
|
328
|
-
-
|
329
|
-
- metrics-elb.rb
|
330
|
-
- metrics-emr-steps.rb
|
331
|
-
- metrics-rds.rb
|
332
|
-
- metrics-s3.rb
|
333
|
-
- metrics-ses.rb
|
334
|
-
- metrics-sqs.rb
|
334
|
+
- check-cloudwatch-alarm.rb
|
335
335
|
extensions: []
|
336
336
|
extra_rdoc_files: []
|
337
337
|
files:
|
@@ -445,7 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
445
445
|
version: '0'
|
446
446
|
requirements: []
|
447
447
|
rubyforge_project:
|
448
|
-
rubygems_version: 2.4.5
|
448
|
+
rubygems_version: 2.4.5.1
|
449
449
|
signing_key:
|
450
450
|
specification_version: 4
|
451
451
|
summary: Sensu plugins for working with an AWS environment
|