This is an unofficial community-created guide
- Clone cabot
- Copy development conf:
cp conf/development.env.example conf/development.env
- Create a new virtual environment in the Cabot root directory:
python -m virtualenv venv
- Activate your virtual environment:
source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt -r requirements-dev.txt -r requirements-plugins
- Create a new app for check:
python manage.py startapp name_of_check
- Develop custom check based off of cabot-check-cloudwatch or cabot-check-network.
- TODO: Add check creation instructions
To add your newly created Cabot check, we will create and upload a Python package to pypi. If you haven't already, create an account there.
- In the project root directory, execute the following commands (more information)
python setup.py sdist
twine upload dist/*
- Verify your package has uploaded by viewing your projects
- In the Cabot project, add the package/version to
requirements-plugins.txt
- Modify CABOT_PLUGINS_ENABLED in
default.env
with your new package - Run
docker-compose build
docker-compose up
(don't use -d if you are debugging)
- Visit the dashboard at 127.0.0.1:5001