sensu-plugins-dcos 0.1.0 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b213e148b62d64f323fe508f2e35d49b441fe634
4
- data.tar.gz: eafb0f6945fd233bfddb28cd66c880ae6e8639c0
3
+ metadata.gz: ca7de35d531d725fb523f4dc16f9208964fc3884
4
+ data.tar.gz: 5fae4736ccbd3c71774bca089de48df61ce47f01
5
5
  SHA512:
6
- metadata.gz: a8b9349af5c7e301204b25112873c10d5686fe6ec767a3909498f5a8631cad1db293be09d1f297f120068d1c82e4efc09117817275550a78ad40bf3f76c5e349
7
- data.tar.gz: b474337a75395f9b8699d3af3b25d5d24d74e63f1fe2290d44dd404c2646fffc1b4b8accfb09f08503a92fca36caeab295ae11091ee22cee69c54b76a8f6d551
6
+ metadata.gz: 82e2e7dd728cea9f0f95397ee9d593a6bd56f14d22c78e928f9ebae1940a1fc85567eb7a66db550478b5fed19977bc1da2f5b9ed486fb7098e451d584fdc7493
7
+ data.tar.gz: 44c36776b9e7e3ed093bc479de379c8abbf1b7abb81a53ecbf143ab0f22417d8ec9ee6b3c8f635762acd25b3b0e08019864dde52794c52453cf870d81e63f54b
data/CHANGELOG.md CHANGED
@@ -1,10 +1,23 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
- This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
4
+ This CHANGELOG follows the format listed at [Our CHANGELOG Guidelines ](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md).
5
+ Which is based on [Keep A Changelog](http://keepachangelog.com/)
5
6
 
6
7
  ## [Unreleased]
7
8
 
9
+ ## [0.1.1] - 2017-09-09
10
+ ### Fixed
11
+ - metrics-dcos-system-health.rb: Small but essential fixes for DC/OS system health metrics collection (@zemmet)
12
+ - pr template spelling (@majormoses)
13
+
14
+ ### Added
15
+ - automated test for metrics-dcos-system-health.rb (@zemmet)
16
+
17
+ ### Changed
18
+ - test/fixtures/bootstrap.sh: run an apt-update before trying to install (@zemmet)
19
+ - updated our changelog guidelines location
20
+
8
21
  ## [0.1.0] - 2017-08-28
9
22
  ### Added
10
23
  - New DC/OS node health check (@zemmet)
@@ -35,7 +48,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
35
48
  ### Added
36
49
  - Initial release
37
50
 
38
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.4...HEAD
51
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.1.1...HEAD
52
+ [0.1.1]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.1.0...0.1.1
39
53
  [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.4...0.1.0
40
54
  [0.0.4]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.3...0.0.4
41
55
  [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-dcos/compare/0.0.2...0.0.3
@@ -39,7 +39,7 @@
39
39
  # See the License for the specific language governing permissions and
40
40
  # limitations under the License.
41
41
 
42
- require 'sensu-plugin/check/cli'
42
+ require 'sensu-plugin/metric/cli'
43
43
  require 'json'
44
44
  require 'net/http'
45
45
  require 'uri'
@@ -63,12 +63,13 @@ class DcosHealthMetrics < Sensu::Plugin::Metric::CLI::Graphite
63
63
 
64
64
  def run
65
65
  { units: ['id'], nodes: %w[role host_ip] }.each do |endpoint, attributes|
66
- url = "#{config['url']}/#{endpoint}"
66
+ url = "#{config[:url]}/#{endpoint}"
67
67
  resource = get_data(url)
68
- resource[endpoint].each do |item|
68
+ resource[endpoint.to_s].each do |item|
69
69
  path = attributes.map { |attr| item[attr].tr('.', '-') }.join('.')
70
70
  output([config[:scheme], endpoint, path].join('.'), item['health'])
71
71
  end
72
72
  end
73
+ ok
73
74
  end
74
75
  end
@@ -4,7 +4,7 @@ module SensuPluginsDcos
4
4
  module Version
5
5
  MAJOR = 0
6
6
  MINOR = 1
7
- PATCH = 0
7
+ PATCH = 1
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-dcos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - PTC and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin
@@ -326,7 +326,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
326
326
  version: '0'
327
327
  requirements: []
328
328
  rubyforge_project:
329
- rubygems_version: 2.6.11
329
+ rubygems_version: 2.6.13
330
330
  signing_key:
331
331
  specification_version: 4
332
332
  summary: Sensu plugins for dcos-metrics checks and metrics