riemann-aws-dynamodb 0.0.1 → 0.0.2
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/bin/riemann-aws-dynamodb +9 -4
- data/riemann-aws-dynamodb.gemspec +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: 8864f136ccfb703586bd4663d78cc17b116e46e5
|
|
4
|
+
data.tar.gz: f337738b618e4795fe12d4b7621471a58efe415d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5a937dbb16bbbe8f5f4a62184f64200a6a3243b9bee68fd83553cb025504e226b02e1597e06b03024c08a82279d5415bc3406ffff2a2f3e9ac32a4fe181f675
|
|
7
|
+
data.tar.gz: 97f4bdf4e8de5a22bb7e454962fd0d748e4b539b104354301d6e151858ae4d69c8b6eaa4c835b85dbd450fa09f05079318cdd1d243632dc69ed7dc1e8b2ae4d4
|
data/bin/riemann-aws-dynamodb
CHANGED
|
@@ -16,11 +16,16 @@ class Riemann::Tools::AwsDynamoDB
|
|
|
16
16
|
# opt :metric, "Metric names with comma-separated warning/critical thresholds (eg., 'CPUUtilization,50,90'). Multiple tuples can be set.", :type => String, :multi => true
|
|
17
17
|
|
|
18
18
|
def initialize
|
|
19
|
-
abort "FATAL: specify table names, see --help for usage" unless opts[:
|
|
19
|
+
abort "FATAL: specify table names, see --help for usage" unless opts[:tables_given]
|
|
20
20
|
@tables = opts.fetch(:tables)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
if opts.has_key?('access_key') and opts.has_key?('secret_key')
|
|
22
|
+
creds = { :aws_access_key_id => opts[:access_key],
|
|
23
|
+
:aws_secret_access_key => opts[:secret_key] }
|
|
24
|
+
else
|
|
25
|
+
creds = { :use_iam_profile => true }
|
|
26
|
+
end
|
|
27
|
+
creds['region'] = opts[:region]
|
|
28
|
+
@cloudwatch = Fog::AWS::CloudWatch.new(creds)
|
|
24
29
|
end
|
|
25
30
|
|
|
26
31
|
def metrics_opts
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "riemann-aws-dynamodb"
|
|
7
|
-
spec.version = '0.0.
|
|
7
|
+
spec.version = '0.0.2'
|
|
8
8
|
spec.authors = ["Fernando Alonso"]
|
|
9
9
|
spec.email = ["krakatoa1987@gmail.com"]
|
|
10
10
|
spec.summary = %q{Riemann agent to collect Aws DynamoDB metrics}
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riemann-aws-dynamodb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Fernando Alonso
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-01-
|
|
11
|
+
date: 2016-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: riemann-tools
|