Permalink
Browse files

Reimann -> Riemann

  • Loading branch information...
1 parent 4970399 commit d90216a42cf4cd1a1e1cd688fd09d8117ee417a9 @aphyr aphyr committed Feb 24, 2012
View
@@ -1,9 +1,9 @@
-Reimann Tools
+Riemann Tools
=============
-Tiny programs to submit events to Reimann.
+Tiny programs to submit events to Riemann.
-Reimann-health, for example, submits events about the current CPU, load,
+Riemann-health, for example, submits events about the current CPU, load,
memory, and disk use. Bench submits randomly distributed metrics for load
testing. I've got a whole bunch of these internally for monitoring Redis, Riak,
queues, etc. Most have internal configuration dependencies, so it'll be a while
@@ -13,6 +13,6 @@ Get started
==========
``` bash
-gem install reimann-tools
-reimann-health --host my.reimann.server
+gem install riemann-tools
+riemann-health --host my.riemann.server
```
View
@@ -9,17 +9,17 @@
# Gemspec
gemspec = Gem::Specification.new do |s|
- s.rubyforge_project = 'reimann-tools'
+ s.rubyforge_project = 'riemann-tools'
- s.name = 'reimann-tools'
+ s.name = 'riemann-tools'
s.version = '0.0.1'
s.author = 'Kyle Kingsbury'
s.email = 'aphyr@aphyr.com'
- s.homepage = 'https://github.com/aphyr/reimann-tools'
+ s.homepage = 'https://github.com/aphyr/riemann-tools'
s.platform = Gem::Platform::RUBY
- s.summary = 'HTTP dashboard for the distributed event system Reimann.'
+ s.summary = 'HTTP dashboard for the distributed event system Riemann.'
- s.add_dependency 'reimann-client', '>= 0.0.4'
+ s.add_dependency 'riemann-client', '>= 0.0.4'
s.add_dependency 'trollop', '>= 1.16.2'
s.files = FileList['lib/**/*', 'bin/*', 'LICENSE', 'README.markdown'].to_a
@@ -34,8 +34,8 @@
end
RDoc::Task.new do |rd|
- rd.main = 'Reimann Tools'
- rd.title = 'Reimann Tools'
+ rd.main = 'Riemann Tools'
+ rd.title = 'Riemann Tools'
rd.rdoc_dir = 'doc'
rd.rdoc_files.include('lib/**/*.rb')
@@ -3,17 +3,17 @@
# Connects to a server (first arg) and populates it with a constant stream of
# events for testing.
-require 'reimann/client'
+require 'riemann/client'
require 'pp'
-class Reimann::Bench
+class Riemann::Bench
attr_accessor :client, :hosts, :services, :states
def initialize
@hosts = [nil] + (0...10).map { |i| "host#{i}" }
@hosts = ['test']
@services = %w(per)
@states = {}
- @client = Reimann::Client.new(host: (ARGV.first || 'localhost'))
+ @client = Riemann::Client.new(host: (ARGV.first || 'localhost'))
end
def evolve(state)
@@ -64,4 +64,4 @@ class Reimann::Bench
end
end
-Reimann::Bench.new.run
+Riemann::Bench.new.run
@@ -1,11 +1,11 @@
#!/usr/bin/env ruby
-# Reports current CPU, disk, load average, and memory use to reimann.
+# Reports current CPU, disk, load average, and memory use to riemann.
require 'trollop'
-require 'reimann/client'
+require 'riemann/client'
-class Reimann::Health
+class Riemann::Health
def initialize(opts)
@host = opts[:host]
@port = opts[:port]
@@ -17,7 +17,7 @@ class Reimann::Health
memory: {critical: opts[:memory_critical], warning: opts[:memory_warning]}
}
- @client = Reimann::Client.new(:host => @host, :port => @port)
+ @client = Riemann::Client.new(:host => @host, :port => @port)
end
def alert(service, state, metric, description)
@@ -150,7 +150,7 @@ class Reimann::Health
end
end
-Reimann::Health.new(Trollop.options do
+Riemann::Health.new(Trollop.options do
opt :host, "Host", :default => '127.0.0.1'
opt :port, "Port", :default => 5555
opt :interval, "Seconds between updates", :default => 5
@@ -1,4 +1,4 @@
-module Reimann
+module Riemann
module Tools
end
end

0 comments on commit d90216a

Please sign in to comment.