sensu-plugins-couchbase 1.0.0 → 1.1.0

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: 4f2401a202ea80e8d757446c8fcbcc2294ad14c4
4
- data.tar.gz: c4b1d8d99500e12f224fdce73a79d8258f24c02e
3
+ metadata.gz: c0c6f347db22285a462ef66002a9e7f871678054
4
+ data.tar.gz: fa80e038311f4fb89d7eaec630d54fe995f0e23c
5
5
  SHA512:
6
- metadata.gz: e7289c14e2f571e99f3cefa36b64f43a0315c9482c3e760ebb953b94b904638f243dd78314905bbaee1bec07b14cc5e28823d23d8154b1e44424387acd530855
7
- data.tar.gz: b0400f2fdd126809b8951b8bb346ede43faa4ac68b1aa7d07d353c9e370c650495cf2ce20c641d87a7d452eae65d2d3b186691c6a6cc7a8cd72b5bf489e2dd7d
6
+ metadata.gz: 863357ed5c8d2d6af77a26388440b21daeec82e5198e1df01f1e7d5397bd9ab37f66b70e20372d1db2c9bad59dede65b3efa8aaea1ca13aa9915bc110842198b
7
+ data.tar.gz: 05f7b68553c1dc1764a42e8c2793354977d760ead7bc560864089555f88c99e3752c0f44769b37400d65071320513da9630e41cd4798bbbfd3bef87bbac1af58
@@ -1,21 +1,30 @@
1
- #Change Log
1
+ # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
4
  This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.1.0] - 2017-05-25
9
+ ### Changed
10
+ - check-couchbase-cluster.rb: make cluster size check optional (@stuwil)
11
+ - check-couchbase-bucket-quota.rb: Format quota (@obazoud)
12
+ - update to rubocop 0.40 and cleanup (@eheydrick)
13
+
14
+ ### Added
15
+ - Test on Ruby 2.4 (@eheydrick)
16
+
8
17
  ## [1.0.0] - 2016-04-28
9
18
  ### Added
10
19
  - support for Ruby 2.3.0
11
20
 
12
21
  ### Removed
13
22
  - support for Ruby 1.9.3 and 2.0
14
-
23
+
15
24
  ### Fixed
16
25
  - binstub for python script
17
26
 
18
- ## [0.3.0] - 2015-11-20
27
+ ## [0.3.0] - 2015-11-20 (Pulled)
19
28
  ### Added
20
29
  - stub for metrics-couchbase.py
21
30
 
@@ -52,8 +61,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
52
61
  ### Added
53
62
  - initial release
54
63
 
55
- [unreleased]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.3.0...HEAD
56
- [0.2.0]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.2.0...0.3.0
64
+ [unreleased]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/1.1.0...HEAD
65
+ [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/1.0.0...1.1.0
66
+ [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.3.0...1.0.0
67
+ [0.3.0]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.2.0...0.3.0
57
68
  [0.2.0]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.1.0...0.2.0
58
69
  [0.1.0]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.0.3...0.1.0
59
70
  [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-couchbase/compare/0.0.2...0.0.3
data/README.md CHANGED
@@ -13,6 +13,7 @@
13
13
  * bin/check-couchbase-bucket-replica.rb
14
14
  * bin/check-couchbase-cluster.rb
15
15
  * bin/metrics-couchbase.py
16
+ * bin/metrics-couchbase.rb
16
17
 
17
18
  ## Usage
18
19
 
@@ -113,7 +113,7 @@ class CheckCouchbase < Sensu::Plugin::Check::CLI
113
113
  status = 'OK'
114
114
  end
115
115
 
116
- output "Couchbase #{bucket[:name]} bucket quota usage is #{bucket[:basicStats][:quotaPercentUsed]}: #{status}"
116
+ output "Couchbase #{bucket[:name]} bucket quota usage is #{format('%.3f', bucket[:basicStats][:quotaPercentUsed])}: #{status}"
117
117
  end
118
118
 
119
119
  critical if critical_found
@@ -104,7 +104,7 @@ class CheckCouchbaseCluster < Sensu::Plugin::Check::CLI
104
104
 
105
105
  warning "Cluster rebalance status #{results[:rebalanceStatus]}" if results[:rebalanceStatus] != 'none'
106
106
 
107
- critical "Cluster's size is #{results[:nodes].size}, #{config[:cluster_size]} expected" if results[:nodes].size != config[:cluster_size]
107
+ critical "Cluster's size is #{results[:nodes].size}, #{config[:cluster_size]} expected" if config[:cluster_size] && results[:nodes].size != config[:cluster_size]
108
108
 
109
109
  ok "Nodes: #{results[:nodes].size}"
110
110
  end
@@ -1,7 +1,7 @@
1
1
  module SensuPluginsCouchbase
2
2
  module Version
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-couchbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2017-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client
@@ -128,14 +128,14 @@ dependencies:
128
128
  requirements:
129
129
  - - "~>"
130
130
  - !ruby/object:Gem::Version
131
- version: '0.37'
131
+ version: 0.40.0
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '0.37'
138
+ version: 0.40.0
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -210,9 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  version: '0'
211
211
  requirements: []
212
212
  rubyforge_project:
213
- rubygems_version: 2.5.1
213
+ rubygems_version: 2.4.5
214
214
  signing_key:
215
215
  specification_version: 4
216
216
  summary: Sensu plugins for couchbase
217
217
  test_files: []
218
- has_rdoc: