Apocalypse is a prototype Node.js server monitoring application that is fully event driven.
Installing Apocalypse on a server is quite easy:
- Checkout the current project:
git clone git://github.com/ariejan/apocalypse.git
- Create a
config.js
, useconfig.example.yml
as an example. - Install the all dependencies
npm link
to install all required Node.js modulesgem install foreman
to start all workers easily
- Make sure you have redis up-and-running
- Start all workers/apps with
foreman start
. This should start (by default):
- Metrics API server on port 3001
- Dashboard server on port 3000
- CPU Analysis worker
- Memory Analysis worker
- Swap Analysis worker
- Disk Usage Analysis worker
- Redis Persistence worker
To add features or create bug fixes setup your local environment as described under installation.
To simulate servers pushing metrics to your development environment you can use the pre-recorded metric in test/fixtures/metrics.json
. To use this file, issue the following wget
command from the root of the project:
wget --post-file=test/fixtures/stats.json --header='Content-type:application/json' -O- http://localhost:3001/api/metrics/SERVER_ID
Right. This is still a prototype, so no tests are available as yet. The plan is to write Jasmine tests using jasmine-node and refactor Apocalypse accordingly.
A pull request is very welcome!
- Fork the repository
- Create a feature branch and do your thing
- When done, create a pull request on Github
Apocalypse is developed by Ariejan de Vroom and the following awesome contributors:
- Bram Wijnands (bramboo)
Apocalpyse will be licensed under the MIT license.