Skip to content

galetahub/simple-god

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Simple God monitoring

If you have many projects, which should monitor the various processes (shpinx, thin, etc.) - It is something that should.

Install

The best way to get god is via rubygems:

sudo gem install god

Copy “config.god” file:

git clone git://github.com/galetahub/simple-god.git

Change constant “APPS_PATH” in “config.god” where your projects in. By default:

APPS_PATH = '/var/www'

To start the god monitoring process:

sudo god -c /path/to/config.god

Usage

Now god look at “config/god” folder and load configuration yml files:

rails_root/config/god/*.yml

Create configuration files in your projects (only you need):

"APPS_PATH/your_project/config/god/delayed_job.yml"
"APPS_PATH/your_project/config/god/sphinx.yml"
"APPS_PATH/your_project/config/god/thin.yml"

Files “delayed_job.yml”, “sphinx.yml” and “thin.yml” you can find in “samples” folder. You can create yml files, naming them as you like, but you must add option service, for example:

rails_root/config/my_config.yml

name: job_worker
status: on
environment: production
workers: 10
service: 'delayed_job'

Avariable services:

  • delayed_job

  • sphinx

  • thin

Notice

IF you change “/config/god/.yml” files, you need tell about it to god:

sudo god -c /path/to/config.god

Todo

* Add more things to monitoring
* Make it as a gem
* Easy installation

Copyright © 2010 Brainberry, released under the MIT license

About

Simple monitoring via God

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages