xStats is a server/client application that can be used to gather server statistics and send them to a central location, and can then be stored or otherwise used for whatever purpose you might have.
Currently 2 modules have been written for the aggregator (server), one that exposes a websocket one can connect to to receive stats, and one that stores them in redis.
- Create a virtualenv (optional)
- Install requirements
pip install -r requirements.txt
- Configure reporter/aggregator using example from
config-example/
- Run using
xstats-server -c <config>
orxstats-reporter -c <config>
xDash is an example dashboard written using Coffeescript that showcases the use of the websocket module, it's configurable for multiple servers however optimal use would probably be between 4-8 servers.
- Make sure that the Websocket module is enabled on the aggregator
- Copy the contents of
xdash/static/
to a folder accessible from the web or runxdash/run.py
(requires Bottle) to make the files accessible - Copy
config.js.example
toconfig.js
and configure it for your set-up - Browse to whatever URL the dashboard is accessible on and it should work.
- Daemonization
- Configurable logging
- Tweak logging output