sensu-plugins-edgelab 1.8.0 → 1.8.1
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/metrics-aws-asg.rb +6 -2
- 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: 76c7414eb2b618bc76aadf8aaac5698f1fd2f3d6
|
4
|
+
data.tar.gz: 98a2a8f26f550835a731bd8e0c705f6a2ed5b072
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c0c0dd8577ab878c43e39db79649fa969fa8a054b3f28aab788d3640cfa570b0002addb35ca7853361cb804ddcaf36dfeac73786eaac53b35f49a9ac58c6e30
|
7
|
+
data.tar.gz: 90c5fdbffa4de911009faa4288714c46eee8e63ea708126ef256ee90528552cc254b316ddb9a462f9f356a47d71d19bc6e08c61a77a06f7427e70ec989b96640
|
data/bin/metrics-aws-asg.rb
CHANGED
@@ -115,14 +115,18 @@ class ASGMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
115
115
|
static_value = {}
|
116
116
|
statistics.each do |key, static|
|
117
117
|
r = cloud_watch_metric(key, static, asg_name)
|
118
|
-
static_value['AutoScalingGroup.' + asg_name + '.' + key + '.' + static] = static
|
119
|
-
result['AutoScalingGroup.' + asg_name + '.' + key + '.' + static] = r[:datapoints][0] unless r[:datapoints][0].nil?
|
118
|
+
static_value['AutoScalingGroup.' + quote(asg_name) + '.' + key + '.' + static] = static
|
119
|
+
result['AutoScalingGroup.' + quote(asg_name) + '.' + key + '.' + static] = r[:datapoints][0] unless r[:datapoints][0].nil?
|
120
120
|
end
|
121
121
|
result.each do |key, value|
|
122
122
|
output config[:scheme] + '.' + key.downcase.to_s, value[static_value[key].downcase], value[:timestamp].to_i
|
123
123
|
end
|
124
124
|
end
|
125
125
|
|
126
|
+
def quote(name)
|
127
|
+
name.tr(' .', '-')
|
128
|
+
end
|
129
|
+
|
126
130
|
def run
|
127
131
|
if config[:statistic] == ''
|
128
132
|
default_statistic_per_metric = {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-edgelab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edgelab
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07
|
11
|
+
date: 2017-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|