sensu-plugins-dcos 0.0.3 → 0.0.4

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
  SHA1:
3
- metadata.gz: 8a03eda3e661cc220f14f51940955d69351479d8
4
- data.tar.gz: 243ecb43f6827b4787720c581a48bdb44b6307a5
3
+ metadata.gz: e641b486db1fdbd31fee74ee0c387e933620b921
4
+ data.tar.gz: eae619c43de2f034d0c27afabec03088ac22d0b3
5
5
  SHA512:
6
- metadata.gz: 00d554a5899608aa9c2dca86a516074411421cd9715ace71743d2a90037c933303e03b2e1b9821616468a1c236bbb3238046b5796bc60865180f93adbd9297c0
7
- data.tar.gz: 715f1f6e7d1b62ffcae3d84074cac9b71bf514176ada02c729f2ef9632bc3ec0340f7c2954d5a3885c7aa9d5edf58aa0fa763393855ee0cf66cf02eec87335eb
6
+ metadata.gz: edd252484d0ef12ec1a7f5f526846aac2863439ca371c6ae48fa1b06f9016c37fa33e56bdd9f4c5d03324ddfa392e7b12c99f41227fd05db7be0e482c8597979
7
+ data.tar.gz: f5742383acd0212edb5f57a964d7aeffcc9112f84ad691ed207710f4ebcef42355bc0be96e0feb556c316b7f5d6d1ba965057e93091ec7dc704c28f42761c713
data/CHANGELOG.md CHANGED
@@ -4,6 +4,12 @@ This project adheres to [Semantic Versioning](http://semver.org/).
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
+
8
+ ## [0.0.4]
9
+ ### Added
10
+ - Rakefile now inclutes kitchen integration tests
11
+ - Fixes metric collection scripts to cover the cases when an app sets unit as an empty string (@luisdavim)
12
+
7
13
  ### [0.0.3] - 2017-08-12
8
14
  ### Changed
9
15
  - switched from vagrant to docker testing as it's lighter weight (@majormoses)
@@ -21,11 +27,11 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
21
27
  - Extending get_value function to provide the ability to override field names
22
28
 
23
29
  ## [0.0.1] - 2017-04-18
24
-
25
30
  ### Added
26
31
  - Initial release
27
32
 
28
33
  [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.3...HEAD
34
+ [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.3...0.0.4
29
35
  [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.2...0.0.3
30
36
  [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.1...0.0.2
31
37
  [0.0.1]:https://github.com/sensu-plugins/sensu-plugins-dcos/compare/9c72afb596622f6c1a51f95281f52bd53791ede9...0.0.1
@@ -99,6 +99,7 @@ class DCOSMetrics < Sensu::Plugin::Metric::CLI::Graphite
99
99
  end
100
100
  metric['name'].tr!('/', '.')
101
101
  metric['name'].squeeze!('.')
102
+ metric['unit'] = 'na' if metric['unit'].empty?
102
103
  output([config[:scheme], container, 'app', metric['unit'], metric['name']].join('.'), metric['value'])
103
104
  end
104
105
  end
@@ -88,6 +88,7 @@ class DCOSMetrics < Sensu::Plugin::Metric::CLI::Graphite
88
88
  end
89
89
  metric['name'].tr!('/', '.')
90
90
  metric['name'].squeeze!('.')
91
+ metric['unit'] = 'na' if metric['unit'].empty?
91
92
  output([config[:scheme], metric['unit'], metric['name']].join('.'), metric['value'])
92
93
  end
93
94
  end
@@ -4,7 +4,7 @@ module SensuPluginsDcos
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 0
7
- PATCH = 3
7
+ PATCH = 4
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-dcos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - PTC and contributors