Skip to content

Universal application profiler and statistics visualizer.

License

Notifications You must be signed in to change notification settings

uvNikita/appstats

Repository files navigation

AppStats

Universal application profiler and statistics visualizer with anomaly detection

Installation

Install requirements:

$ pip install -r requirements.txt

For anomaly detection:

$ sudo add-apt-repository ppa:marutter/rrutter
$ sudo apt-get update
$ sudo apt-get install r-base-core, build-essential, curl, libxml2-dev, libcurl4-gnutls-dev, libssl-dev
$ /usr/lib/R/bin/R --slave --no-restore --file=init.R

Default settings file: appstats/config.py

Settings files:

1. path from environment variable `APPSTATS_SETTINGS`
2. /etc/appstats.cfg
3. ~/.appstats.cfg

Run

$ gunicorn --daemon --workers=8 appstats.app:app.wsgi_app

Cron configuration:

*/3 * * * * user python /path/to/appstats/manage.py update_cache -s 'apps'
*/3 * * * * user python /path/to/appstats/manage.py update_cache -s 'tasks'
*/10 * * * * user /usr/lib/R/bin/R --slave --no-restore --file=/path/to/appstats/anomalies.R --args mongo_host:port mongo_db app1 app2
* * * * * user python /path/to/appstats/manage.py update_counters -s 'apps'
* * * * * user python /path/to/appstats/manage.py update_counters -s 'tasks'

Screenshots

dashboard

appstats

About

Universal application profiler and statistics visualizer.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages