what 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -1
- data/bin/what +3 -4
- data/lib/what/version.rb +1 -1
- data/lib/what.rb +2 -1
- data/what.gemspec +6 -5
- metadata +11 -12
data/README.md
CHANGED
@@ -1,7 +1,16 @@
|
|
1
1
|
What? A simple server monitoring tool.
|
2
2
|
======================================
|
3
3
|
|
4
|
-
|
4
|
+
![WHAT !](http://i.imgur.com/f6lrv.png)
|
5
|
+
|
6
|
+
What is a modular, easily-extensible server monitoring tool which is still in
|
7
|
+
the early stages of development.
|
8
|
+
|
9
|
+
### What do I install?
|
10
|
+
|
11
|
+
$ gem install what
|
12
|
+
|
13
|
+
### What does it do?
|
5
14
|
|
6
15
|
Right now, the example config file monitors Unicorn workers. Observe:
|
7
16
|
|
@@ -22,3 +31,9 @@ implement a `health` method, which returns `:ok`, `:warning`, or `:alert`.
|
|
22
31
|
They can also implement a `details` method, which returns the hash
|
23
32
|
that's included in the HTTP response. See the included `What::Modules::Base`
|
24
33
|
and `What::Modules::Unicorn` classes for the implementation details.
|
34
|
+
|
35
|
+
### What's the plan?
|
36
|
+
|
37
|
+
Eventually, it should be possible to write a What module which monitors other
|
38
|
+
What servers across an entire deployment, pulling together all relevant
|
39
|
+
information into one JSON object.
|
data/bin/what
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'optparse'
|
3
|
+
require 'webrick'
|
4
|
+
require 'rack'
|
3
5
|
require 'what'
|
4
6
|
|
5
7
|
opts = OptionParser.new do |opts|
|
@@ -22,7 +24,4 @@ unless What::Config.loaded?
|
|
22
24
|
exit
|
23
25
|
end
|
24
26
|
|
25
|
-
|
26
|
-
run What::Server.new
|
27
|
-
end
|
28
|
-
|
27
|
+
Rack::Handler::WEBrick.run(What::Server.new, :Port => 9428)
|
data/lib/what/version.rb
CHANGED
data/lib/what.rb
CHANGED
data/what.gemspec
CHANGED
@@ -9,10 +9,11 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.authors = ["Ryan Lower", "Ryan Fitzgerald"]
|
10
10
|
s.email = ["team@academia.edu"]
|
11
11
|
s.homepage = "http://academia.edu/"
|
12
|
-
s.summary = %q{
|
13
|
-
s.description =
|
14
|
-
|
15
|
-
module for monitoring Unicorn workers, but
|
12
|
+
s.summary = %q{Simple server monitoring tool}
|
13
|
+
s.description = "What uses WEBrick to serve a JSON object representing the" +
|
14
|
+
"state of services running on a machine. It currently only" +
|
15
|
+
"includes a module for monitoring Unicorn workers, but" +
|
16
|
+
"it's easy to add custom modules."
|
16
17
|
|
17
18
|
s.rubyforge_project = "what"
|
18
19
|
|
@@ -21,6 +22,6 @@ module for monitoring Unicorn workers, but it's easy to add custom modules.}
|
|
21
22
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
23
|
s.require_paths = ["lib"]
|
23
24
|
|
24
|
-
s.add_dependency("
|
25
|
+
s.add_dependency("rack", ">= 1.1.2")
|
25
26
|
s.add_dependency("json")
|
26
27
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: what
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 5
|
10
|
+
version: 0.0.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Lower
|
@@ -20,17 +20,19 @@ date: 2011-05-10 00:00:00 -07:00
|
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
|
-
name:
|
23
|
+
name: rack
|
24
24
|
prerelease: false
|
25
25
|
requirement: &id001 !ruby/object:Gem::Requirement
|
26
26
|
none: false
|
27
27
|
requirements:
|
28
28
|
- - ">="
|
29
29
|
- !ruby/object:Gem::Version
|
30
|
-
hash:
|
30
|
+
hash: 23
|
31
31
|
segments:
|
32
|
-
-
|
33
|
-
|
32
|
+
- 1
|
33
|
+
- 1
|
34
|
+
- 2
|
35
|
+
version: 1.1.2
|
34
36
|
type: :runtime
|
35
37
|
version_requirements: *id001
|
36
38
|
- !ruby/object:Gem::Dependency
|
@@ -47,10 +49,7 @@ dependencies:
|
|
47
49
|
version: "0"
|
48
50
|
type: :runtime
|
49
51
|
version_requirements: *id002
|
50
|
-
description:
|
51
|
-
What runs a Thin server which returns a JSON object representing
|
52
|
-
the state of services running on a machine. It currently only includes a
|
53
|
-
module for monitoring Unicorn workers, but it's easy to add custom modules.
|
52
|
+
description: What uses WEBrick to serve a JSON object representing thestate of services running on a machine. It currently onlyincludes a module for monitoring Unicorn workers, butit's easy to add custom modules.
|
54
53
|
email:
|
55
54
|
- team@academia.edu
|
56
55
|
executables:
|
@@ -110,6 +109,6 @@ rubyforge_project: what
|
|
110
109
|
rubygems_version: 1.5.1
|
111
110
|
signing_key:
|
112
111
|
specification_version: 3
|
113
|
-
summary:
|
112
|
+
summary: Simple server monitoring tool
|
114
113
|
test_files: []
|
115
114
|
|