sensu-plugins-aws 16.1.0 → 16.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +9 -1
- data/README.md +0 -2
- data/bin/check-ec2-cpu_balance.rb +8 -1
- data/lib/sensu-plugins-aws/version.rb +1 -1
- metadata +69 -84
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d3d17caf7ac0047d02b2d9f339fcc7a445f88492c23ac96a5da4ffc957740c29
|
4
|
+
data.tar.gz: a67fa60ca62797968ddab4bb33d899dba1b4c8a1aeac2a676eef3babc24f5bd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593b2de9a5809ca5cabb4f0e56effca1bee0b9b5a9392c9dca61ca95fd6df3b1fc2d83510739924649a60165f63ee2928fc165203fe414b3a05e705172953c3a
|
7
|
+
data.tar.gz: ec57ca98fa34966aa253194585b38c2294da22a6a014a1abeb0461b523043d8dfe65e2b0077147d47dfa26301bce3c16beee416c692139efdc5898cbe80fd855
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [16.2.0] - 2019-02-19
|
9
|
+
### Fixed
|
10
|
+
- removed codeclimate (@tmonk42)
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- `check-ec2-cpu_balance.rb`: adding option `--instance-families` to manage which instance families to check. (@cyrilgdn)
|
14
|
+
|
8
15
|
## [16.1.0] - 2018-11-02
|
9
16
|
### Changed
|
10
17
|
- updated dev depenency of `github-markup` to `~> 3.0` (@dependabot) (@majormoses)
|
@@ -536,7 +543,8 @@ WARNING: This release contains major breaking changes that will impact all user
|
|
536
543
|
### Added
|
537
544
|
- initial release
|
538
545
|
|
539
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/16.
|
546
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/16.2.0...HEAD
|
547
|
+
[16.2.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/16.1.0...16.2.0
|
540
548
|
[16.1.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/16.0.0...16.1.0
|
541
549
|
[16.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/15.0.0...16.0.0
|
542
550
|
[15.0.0]: https://github.com/sensu-plugins/sensu-plugins-aws/compare/14.0.0...15.0.0
|
data/README.md
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-aws.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-aws)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-aws.svg)](https://badge.fury.io/rb/sensu-plugins-aws.svg)
|
5
|
-
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws)
|
6
|
-
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-aws)
|
7
5
|
|
8
6
|
## Functionality
|
9
7
|
|
@@ -59,6 +59,13 @@ class EC2CpuBalance < Sensu::Plugin::Check::CLI
|
|
59
59
|
short: '-t TAG',
|
60
60
|
long: '--tag TAG'
|
61
61
|
|
62
|
+
option :instance_families,
|
63
|
+
description: 'List of burstable instance families to check. Default to t2,t3',
|
64
|
+
short: '-f t2,t3',
|
65
|
+
long: '--instance-families t2,t3',
|
66
|
+
proc: proc { |x| x.split(',') },
|
67
|
+
default: %w[t2 t3]
|
68
|
+
|
62
69
|
def data(instance)
|
63
70
|
client = Aws::CloudWatch::Client.new
|
64
71
|
stats = 'Average'
|
@@ -101,7 +108,7 @@ class EC2CpuBalance < Sensu::Plugin::Check::CLI
|
|
101
108
|
level = 0
|
102
109
|
instances.reservations.each do |reservation|
|
103
110
|
reservation.instances.each do |instance|
|
104
|
-
next unless instance.instance_type.start_with?
|
111
|
+
next unless instance.instance_type.start_with?(*config[:instance_families])
|
105
112
|
id = instance.instance_id
|
106
113
|
result = data id
|
107
114
|
tag = config[:tag] ? " (#{instance_tag(instance, config[:tag])})" : ''
|
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: 16.
|
4
|
+
version: 16.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:
|
11
|
+
date: 2019-02-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -122,20 +122,6 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '1.7'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: codeclimate-test-reporter
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '1.0'
|
139
125
|
- !ruby/object:Gem::Dependency
|
140
126
|
name: github-markup
|
141
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -242,86 +228,86 @@ description: |-
|
|
242
228
|
for EC2, SES, and SNS.
|
243
229
|
email: "<sensu-users@googlegroups.com>"
|
244
230
|
executables:
|
245
|
-
- check-
|
246
|
-
- check-ebs-burst-limit.rb
|
247
|
-
- check-subnet-ip-consumption.rb
|
248
|
-
- check-rds-events.rb
|
249
|
-
- handler-sns.rb
|
250
|
-
- check-elb-health.rb
|
251
|
-
- metrics-waf.rb
|
252
|
-
- check-elasticache-failover.rb
|
253
|
-
- metrics-rds.rb
|
254
|
-
- check-ec2-cpu_balance.rb
|
255
|
-
- handler-ec2_node.rb
|
256
|
-
- metrics-ec2-count.rb
|
257
|
-
- check-redshift-events.rb
|
258
|
-
- check-asg-instances-created.rb
|
259
|
-
- check-emr-cluster.rb
|
260
|
-
- check-trustedadvisor-service-limits.rb
|
231
|
+
- check-cloudwatch-alarms.rb
|
261
232
|
- metrics-cloudfront.rb
|
262
|
-
-
|
263
|
-
- check-
|
233
|
+
- metrics-ses.rb
|
234
|
+
- check-ebs-burst-limit.rb
|
264
235
|
- handler-scale-asg-down.rb
|
265
|
-
- check-s3-
|
266
|
-
- check-
|
267
|
-
- check-elb-sum-requests.rb
|
268
|
-
- handler-scale-asg-up.rb
|
269
|
-
- check-ec2-filter.rb
|
270
|
-
- check-elb-nodes.rb
|
271
|
-
- check-cloudwatch-alarm.rb
|
272
|
-
- check-dynamodb-throttle.rb
|
273
|
-
- check-ec2-network.rb
|
274
|
-
- check-elb-certs.rb
|
275
|
-
- check-ses-limit.rb
|
236
|
+
- check-s3-bucket-visibility.rb
|
237
|
+
- check-trustedadvisor-service-limits.rb
|
276
238
|
- check-kms-key.rb
|
239
|
+
- check-ses-statistics.rb
|
240
|
+
- check-alb-target-group-health.rb
|
241
|
+
- check-ses-limit.rb
|
242
|
+
- check-sns-subscriptions.rb
|
243
|
+
- metrics-waf.rb
|
244
|
+
- metrics-autoscaling-instance-count.rb
|
245
|
+
- metrics-s3.rb
|
246
|
+
- check-s3-tag.rb
|
247
|
+
- check-dynamodb-throttle.rb
|
248
|
+
- handler-ec2_node.rb
|
249
|
+
- check-ec2-cpu_balance.rb
|
250
|
+
- check-beanstalk-health.rb
|
277
251
|
- metrics-asg.rb
|
252
|
+
- check-instances-count.rb
|
253
|
+
- check-elb-certs.rb
|
254
|
+
- check-reserved-instances.rb
|
255
|
+
- check-instance-health.rb
|
256
|
+
- check-ec2-network.rb
|
278
257
|
- check-efs-metric.rb
|
279
|
-
-
|
280
|
-
- check-
|
281
|
-
-
|
282
|
-
- check-rds-pending.rb
|
283
|
-
- check-beanstalk-health.rb
|
258
|
+
- check-sensu-client.rb
|
259
|
+
- check-emr-cluster.rb
|
260
|
+
- handler-ses.rb
|
284
261
|
- check-asg-instances-inservice.rb
|
285
|
-
- metrics-elb.rb
|
286
|
-
- check-route.rb
|
287
|
-
- metrics-sqs.rb
|
288
|
-
- check-route53-domain-expiration.rb
|
289
|
-
- check-elb-health-fog.rb
|
290
|
-
- check-s3-bucket-visibility.rb
|
291
|
-
- check-cloudwatch-metric.rb
|
292
|
-
- check-ebs-snapshots.rb
|
293
|
-
- check-dynamodb-capacity.rb
|
294
|
-
- check-vpc-vpn.rb
|
295
262
|
- check-sqs-messages.rb
|
296
|
-
-
|
297
|
-
-
|
298
|
-
- check-certificate-expiry.rb
|
299
|
-
- check-instance-health.rb
|
300
|
-
- check-beanstalk-elb-metric.rb
|
263
|
+
- check-rds-pending.rb
|
264
|
+
- check-cloudwatch-metric.rb
|
301
265
|
- check-configservice-rules.rb
|
302
|
-
-
|
266
|
+
- check-beanstalk-elb-metric.rb
|
267
|
+
- check-elb-health.rb
|
303
268
|
- check-instance-reachability.rb
|
304
|
-
- check-elb-latency.rb
|
305
|
-
- check-cloudwatch-alarms.rb
|
306
|
-
- check-ses-statistics.rb
|
307
|
-
- check-direct-connect-virtual-interfaces.rb
|
308
|
-
- check-alb-target-group-health.rb
|
309
|
-
- check-eni-status.rb
|
310
|
-
- handler-ses.rb
|
311
269
|
- check-emr-steps.rb
|
312
|
-
- check-
|
313
|
-
-
|
270
|
+
- check-elasticache-failover.rb
|
271
|
+
- check-eip-allocation.rb
|
272
|
+
- check-s3-object.rb
|
273
|
+
- check-redshift-events.rb
|
274
|
+
- check-ecs-service-health.rb
|
275
|
+
- check-autoscaling-cpucredits.rb
|
276
|
+
- check-s3-bucket.rb
|
277
|
+
- check-elb-health-sdk.rb
|
278
|
+
- check-cloudwatch-alarm.rb
|
279
|
+
- check-route.rb
|
280
|
+
- check-ebs-snapshots.rb
|
281
|
+
- metrics-ec2-filter.rb
|
282
|
+
- check-route53-domain-expiration.rb
|
283
|
+
- metrics-rds.rb
|
284
|
+
- check-dynamodb-capacity.rb
|
285
|
+
- check-ec2-filter.rb
|
286
|
+
- check-asg-instances-created.rb
|
287
|
+
- check-eni-status.rb
|
288
|
+
- metrics-sqs.rb
|
314
289
|
- check-instance-events.rb
|
315
|
-
-
|
290
|
+
- metrics-elasticache.rb
|
291
|
+
- check-rds-events.rb
|
292
|
+
- check-subnet-ip-consumption.rb
|
293
|
+
- check-elb-nodes.rb
|
294
|
+
- check-elb-sum-requests.rb
|
295
|
+
- check-elb-health-fog.rb
|
296
|
+
- handler-sns.rb
|
297
|
+
- handler-scale-asg-up.rb
|
316
298
|
- check-vpc-nameservers.rb
|
317
|
-
- check-elb-health-sdk.rb
|
318
299
|
- check-cloudwatch-composite-metric.rb
|
319
|
-
- check-
|
320
|
-
- check-
|
321
|
-
- check-eip-allocation.rb
|
322
|
-
- metrics-elasticache.rb
|
300
|
+
- check-rds.rb
|
301
|
+
- check-cloudfront-tag.rb
|
323
302
|
- metrics-emr-steps.rb
|
324
|
-
- check-
|
303
|
+
- check-certificate-expiry.rb
|
304
|
+
- check-elb-instances-inservice.rb
|
305
|
+
- check-elb-latency.rb
|
306
|
+
- metrics-ec2-count.rb
|
307
|
+
- metrics-billing.rb
|
308
|
+
- check-vpc-vpn.rb
|
309
|
+
- check-direct-connect-virtual-interfaces.rb
|
310
|
+
- metrics-elb.rb
|
325
311
|
extensions: []
|
326
312
|
extra_rdoc_files: []
|
327
313
|
files:
|
@@ -438,8 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
438
424
|
- !ruby/object:Gem::Version
|
439
425
|
version: '0'
|
440
426
|
requirements: []
|
441
|
-
|
442
|
-
rubygems_version: 2.6.11
|
427
|
+
rubygems_version: 3.0.2
|
443
428
|
signing_key:
|
444
429
|
specification_version: 4
|
445
430
|
summary: Sensu plugins for working with an AWS environment
|