Skip to main content

A Django app that monitor services and acts on them

Project description


Daemond that monitor services and acts on them based on rules. Monscale is a Django app.

The app resides mainly in two commands, the monitor and the actions executor. Also it's got
a web interface to manage its configuration.
The monitor is a loop that retrieves from the DB the info about the MonitoredServices.

Each MonitoredService is the relation of:

- A metric.
- A condition for that metric
- A time the condition must be True
- An action must be triggered if the condition was True more seconds than the
shown by the threshold.

When an action is triggered, its queued in a Redis list.

The Action Executor is a daemon that collects the actions queued at the Redis list
and executes them.


The Django app can be installed just by issuing the following command, which installs every dependency

pip install monscale

Once installation is finished it's time to create the Django project under which the app will run. It
is recomended to do this by issuing the following command, as it not only creates the project, but
it also adapts its file with the configuration needed by the app.


Note that monscale uses Redis list to store some of its operational data, therefore either
install Redis and get it running, or use a predeployed Redis server.

You'll find the settings needed to connect to the Redis server at the project file.

Don't forget to set the SQL DB and other configurations of your choice.

Finally populate the DB (from project's dir):

./ syncdb


To start the monitor daemon just issue the following command at the project's dir:

./ evaluate_context

To start the actions daemon issue the following command at the project's dir:

./ action_worker

To start the development web management interface (from project's dir):

./ runserver

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
monscale-0.4.tar.gz (38.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page