Amon - developer friendly system monitoring and logging tool
Amon was designed with one goal in mind - to help you completely monitor your web applications.
1. System monitoring
When we deploy our web applications it's important to know how much server resources they use over time, so that we can improve and optimize them. With Amon you can monitor your CPU usage, RAM, average load, network interfaces and disk drives.
2. Process monitoring
Monitoring the whole system gives you a nice overview, but sometimes you need to monitor specific processes, like your database or server.
3. Language agnostic logging
4. Language agnostic exception handling
- Download the tarball and install the package with python setup.py install
- Copy the system info collect daemon contrib/amon/amon to /etc/init.d/amon
- Make it executable with sudo chmod +x /etc/init.d/amon and then start the daemon with sudo invoke-rc.d/amon start
Amon stores the system information in a Mongo database. In this section I will cover just the basics of how to install and run a mongo instance. You can find much more details at http://mongodb.org
We need to create 3 directories for Mongo: -
mkdir /usr/local/mongodb - the main directory mkdir /usr/local/mongodb/data - for the database mkdir /usr/local/mongodb/bin - for the mongo executables touch /var/log/mongodb.log - the mongodb log file
Download Mongo from http://www.mongodb.org/downloads and copy the mongod file to /usr/local/mongodb/bin
Copy the Mongo init script contrib/mongodb/mongodb.conf to /etc/init/mongodb.conf
Start the database with sudo start mongodb
At it's core Amon is a web application. You can start it with python cherryd -i amon.web
And then open http://127.0.0.1:2464 ( or your server ip address ) in your browser