sensu-plugins-etcd 0.0.1.alpha.1 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +9 -2
- data/LICENSE +1 -1
- data/README.md +4 -43
- data/bin/check-etcd.rb +6 -8
- data/bin/metrics-etcd.rb +2 -2
- data/lib/sensu-plugins-etcd.rb +10 -3
- data/lib/sensu-plugins-etcd/version.rb +28 -0
- metadata +15 -26
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d157639088fe52ae86141765651568026914c0e
|
4
|
+
data.tar.gz: b4ff6d8d062f635df2e063c1f04b90eab4d27b10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 654af3ef2f0ec4bb32d3ddd89a4e448a5708d27a8043eb37eedcc21d2c3343894d5b8c82257b7569ac6a8bec0f686e88d20179f41d2871a6b7d127d27d0c9f5f
|
7
|
+
data.tar.gz: 44a5d7a1138e445ae021f83b1057835adf62ff6b5eae7364cab555fe2a8fffd8b87c9e7f89608c425425857ec8a142bff53d6bb614a37930e1f59ba708c9bf7c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
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
|
+
|
6
|
+
## Unreleased][unreleased]
|
7
|
+
|
8
|
+
## 0.0.1 - 2015-04-30
|
9
|
+
|
10
|
+
### Added
|
11
|
+
- initial release
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -5,56 +5,17 @@
|
|
5
5
|
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd)
|
7
7
|
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-etcd.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-etcd)
|
8
|
-
|
8
|
+
[ ![Codeship Status for sensu-plugins/sensu-plugins-etcd](https://codeship.com/projects/55e83d10-d1e4-0132-a14d-4afb0344239b/status?branch=master)](https://codeship.com/projects/77418)
|
9
9
|
## Functionality
|
10
10
|
|
11
11
|
## Files
|
12
|
-
* bin/check-etcd
|
13
|
-
* bin/metrics-etcd
|
12
|
+
* bin/check-etcd.rb
|
13
|
+
* bin/metrics-etcd.rb
|
14
14
|
|
15
15
|
## Usage
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
```
|
22
|
-
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
|
23
|
-
gem install sensu-plugins-etcd -P MediumSecurity
|
24
|
-
```
|
25
|
-
|
26
|
-
You can also download the key from /certs/ within each repository.
|
27
|
-
|
28
|
-
#### Rubygems
|
29
|
-
|
30
|
-
`gem install sensu-plugins-etcd`
|
31
|
-
|
32
|
-
#### Bundler
|
33
|
-
|
34
|
-
Add *sensu-plugins-disk-checks* to your Gemfile and run `bundle install` or `bundle update`
|
35
|
-
|
36
|
-
#### Chef
|
37
|
-
|
38
|
-
Using the Sensu **sensu_gem** LWRP
|
39
|
-
```
|
40
|
-
sensu_gem 'sensu-plugins-etcd' do
|
41
|
-
options('--prerelease')
|
42
|
-
version '0.0.1.alpha.4'
|
43
|
-
end
|
44
|
-
```
|
45
|
-
|
46
|
-
Using the Chef **gem_package** resource
|
47
|
-
```
|
48
|
-
gem_package 'sensu-plugins-etcd' do
|
49
|
-
options('--prerelease')
|
50
|
-
version '0.0.1.alpha.4'
|
51
|
-
end
|
52
|
-
```
|
19
|
+
[Installation and Setup](https://github.com/sensu-plugins/documentation/blob/master/user_docs/installation_instructions.md)
|
53
20
|
|
54
21
|
## Notes
|
55
|
-
|
56
|
-
[1]:[https://travis-ci.org/sensu-plugins/sensu-plugins-etcd]
|
57
|
-
[2]:[http://badge.fury.io/rb/sensu-plugins-etcd]
|
58
|
-
[3]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd]
|
59
|
-
[4]:[https://codeclimate.com/github/sensu-plugins/sensu-plugins-etcd]
|
60
|
-
[5]:[https://gemnasium.com/sensu-plugins/sensu-plugins-etcd]
|
data/bin/check-etcd.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# check-etcd
|
4
4
|
#
|
5
5
|
# DESCRIPTION:
|
6
|
-
# This plugin checks that the stats/self url returns
|
6
|
+
# This plugin checks that the stats/self url returns 200 OK.
|
7
7
|
#
|
8
8
|
# OUTPUT:
|
9
9
|
# plain text
|
@@ -14,7 +14,6 @@
|
|
14
14
|
# DEPENDENCIES:
|
15
15
|
# gem: sensu-plugin
|
16
16
|
# gem: rest-client
|
17
|
-
# gem: json
|
18
17
|
#
|
19
18
|
# USAGE:
|
20
19
|
# #YELLOW
|
@@ -29,23 +28,22 @@
|
|
29
28
|
|
30
29
|
require 'sensu-plugin/check/cli'
|
31
30
|
require 'rest-client'
|
32
|
-
require 'json'
|
33
31
|
|
34
32
|
#
|
35
33
|
# Etcd Node Status
|
36
34
|
#
|
37
35
|
class EtcdNodeStatus < Sensu::Plugin::Check::CLI
|
38
36
|
option :server,
|
39
|
-
description: '
|
40
|
-
short: '-
|
41
|
-
long: '--
|
37
|
+
description: 'Etcd host, defaults to localhost',
|
38
|
+
short: '-h HOST',
|
39
|
+
long: '--host HOST',
|
42
40
|
default: 'localhost'
|
43
41
|
|
44
42
|
option :port,
|
45
|
-
description: '
|
43
|
+
description: 'Etcd port, defaults to 2379',
|
46
44
|
short: '-p PORT',
|
47
45
|
long: '--port PORT',
|
48
|
-
default: '
|
46
|
+
default: '2379'
|
49
47
|
|
50
48
|
def run
|
51
49
|
r = RestClient::Resource.new("http://#{config[:server]}:#{config[:port]}/v2/stats/self", timeout: 5).get
|
data/bin/metrics-etcd.rb
CHANGED
@@ -48,10 +48,10 @@ class EtcdMetrics < Sensu::Plugin::Metric::CLI::Graphite
|
|
48
48
|
default: 'localhost'
|
49
49
|
|
50
50
|
option :etcd_port,
|
51
|
-
description: 'Etcd port, defaults to
|
51
|
+
description: 'Etcd port, defaults to 2379',
|
52
52
|
short: '-p PORT',
|
53
53
|
long: '--port PORT',
|
54
|
-
default: '
|
54
|
+
default: '2379'
|
55
55
|
|
56
56
|
option :leader_stats,
|
57
57
|
description: 'Show leader stats',
|
data/lib/sensu-plugins-etcd.rb
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
# encoding: utf-8
|
4
|
+
module SensuPluginsEtcd
|
5
|
+
# This defines the version of the gem
|
6
|
+
module Version
|
7
|
+
MAJOR = 0
|
8
|
+
MINOR = 0
|
9
|
+
PATCH = 1
|
10
|
+
|
11
|
+
VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
|
12
|
+
|
13
|
+
NAME = 'sensu-plugins-etcd'
|
14
|
+
BANNER = "#{NAME} v%s"
|
15
|
+
|
16
|
+
module_function
|
17
|
+
|
18
|
+
def version
|
19
|
+
format(BANNER, VER_STRING)
|
20
|
+
end
|
21
|
+
|
22
|
+
def json_version
|
23
|
+
{
|
24
|
+
'version' => VER_STRING
|
25
|
+
}.to_json
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-etcd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-
|
33
|
+
date: 2015-05-22 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rest-client
|
@@ -46,20 +46,6 @@ dependencies:
|
|
46
46
|
- - '='
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: 1.8.0
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: json
|
51
|
-
requirement: !ruby/object:Gem::Requirement
|
52
|
-
requirements:
|
53
|
-
- - '='
|
54
|
-
- !ruby/object:Gem::Version
|
55
|
-
version: 1.8.2
|
56
|
-
type: :runtime
|
57
|
-
prerelease: false
|
58
|
-
version_requirements: !ruby/object:Gem::Requirement
|
59
|
-
requirements:
|
60
|
-
- - '='
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: 1.8.2
|
63
49
|
- !ruby/object:Gem::Dependency
|
64
50
|
name: sensu-plugin
|
65
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,16 +92,16 @@ dependencies:
|
|
106
92
|
name: rubocop
|
107
93
|
requirement: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
109
|
-
- -
|
95
|
+
- - "~>"
|
110
96
|
- !ruby/object:Gem::Version
|
111
|
-
version: 0.
|
97
|
+
version: '0.30'
|
112
98
|
type: :development
|
113
99
|
prerelease: false
|
114
100
|
version_requirements: !ruby/object:Gem::Requirement
|
115
101
|
requirements:
|
116
|
-
- -
|
102
|
+
- - "~>"
|
117
103
|
- !ruby/object:Gem::Version
|
118
|
-
version: 0.
|
104
|
+
version: '0.30'
|
119
105
|
- !ruby/object:Gem::Dependency
|
120
106
|
name: rspec
|
121
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,6 +212,7 @@ files:
|
|
226
212
|
- bin/check-etcd.rb
|
227
213
|
- bin/metrics-etcd.rb
|
228
214
|
- lib/sensu-plugins-etcd.rb
|
215
|
+
- lib/sensu-plugins-etcd/version.rb
|
229
216
|
homepage: https://github.com/sensu-plugins/sensu-plugins-etcd
|
230
217
|
licenses:
|
231
218
|
- MIT
|
@@ -233,7 +220,10 @@ metadata:
|
|
233
220
|
maintainer: ''
|
234
221
|
development_status: unmaintained
|
235
222
|
production_status: unstable - testing recommended
|
236
|
-
|
223
|
+
release_draft: 'false'
|
224
|
+
release_prerelease: 'false'
|
225
|
+
post_install_message: You can use the embedded Ruby by setting EMBEDDED_RUBY=true
|
226
|
+
in /etc/default/sensu
|
237
227
|
rdoc_options: []
|
238
228
|
require_paths:
|
239
229
|
- lib
|
@@ -244,14 +234,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
244
234
|
version: 1.9.3
|
245
235
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
246
236
|
requirements:
|
247
|
-
- - "
|
237
|
+
- - ">="
|
248
238
|
- !ruby/object:Gem::Version
|
249
|
-
version:
|
239
|
+
version: '0'
|
250
240
|
requirements: []
|
251
241
|
rubyforge_project:
|
252
|
-
rubygems_version: 2.
|
242
|
+
rubygems_version: 2.4.6
|
253
243
|
signing_key:
|
254
244
|
specification_version: 4
|
255
245
|
summary: Sensu plugins for etcd
|
256
246
|
test_files: []
|
257
|
-
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|