A minimal monitoring system
Go to file
2018-02-17 20:48:46 -08:00
minitor Add exponential backoff 2018-02-17 20:45:37 -08:00
.gitignore Add run loop and interval 2018-02-14 17:54:42 -08:00
LICENSE Initial commit 2018-02-14 23:33:50 +00:00
Makefile Add packaging make targets 2018-02-16 18:09:52 -08:00
README.md Update readme now that minitor is in pip 2018-02-16 18:13:19 -08:00
requirements-dev.txt Add packaging make targets 2018-02-16 18:09:52 -08:00
requirements.txt Add back requirements.txt to install from setup 2018-02-16 09:55:10 -08:00
sample-config.yml Add exponential backoff 2018-02-17 20:45:37 -08:00
setup.cfg Prepare for pypi 2018-02-16 17:49:33 -08:00
setup.py Bump version to v0.1.1 2018-02-17 20:48:46 -08:00

minitor

A minimal monitoring system

What does it do?

Minitor accepts a YAML configuration file with a set of commands to run and a set of alerts to execute when those commands fail. It is designed to be as simple as possible and relies on other command line tools to do checks and issue alerts.

But why?

I'm running a few small services and found Sensu, Consul, Nagios, etc. to all be far too complicated for my usecase.

So how do I use it?

Running

Install and execute with:

pip install minitor
minitor

If locally developing you can use:

make run

It will read the contents of config.yml and begin its loop. You could also run it directly and provide a new config file via the --config argument.

Configuring

In this repo, you can explore the sample-config.yml file for an example, but the general structure is as follows. It should be noted that environment variable interpolation happens on load of the YAML file. Also, when alerts are executed, they will be passed through Python's format function with arguments for some attributes of the Monitor. Currently this is limited to {monitor_name}.