Self-hosted, easily-deployable monitoring and alerts service - like a lightweight PagerDuty
Go to file
Jakub Sokołowski cd14ac6bc4
upgrade social-auth packages to fix GitHub OAuth
https://github.com/arachnys/cabot/issues/698

Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-09-15 19:20:44 +02:00
bin Ensure that .collectstatic/arachnys/img/favicon.ico exists during testing 2018-05-10 01:02:11 +02:00
cabot make is_public field available via services API 2021-09-15 18:53:10 +02:00
conf Refactor custom check plugin architecture 2017-09-13 17:59:41 +01:00
upstart Add better string escaping to upstart template just in case somebody has an exclamation point in a Django key or something. 2015-04-03 11:47:58 -04:00
.coveragerc Add test coverage support 2016-12-22 11:09:43 +00:00
.foreman Clean repo 2014-01-05 17:24:04 +00:00
.gitignore Add .tox to gitignore 2017-09-06 15:24:13 +01:00
.travis.yml Use sudo to install pip package in Travis-CI (#572) 2017-10-02 14:33:19 +01:00
CHANGES 0.11.16 2019-01-30 16:19:49 +00:00
Dockerfile Dockerfile: fix cryptography build by upgrading image 2021-09-15 19:06:12 +02:00
LICENSE Clean repo 2014-01-05 17:24:04 +00:00
MANIFEST.in 0.11.2 2017-09-06 12:49:51 +01:00
Pipfile Update to django 1.11 2017-05-04 17:57:42 +01:00
Procfile Fix all workers running beats 2017-02-09 12:19:40 +00:00
Procfile.dev Fix all workers running beats 2017-02-09 12:19:40 +00:00
README.md Add maintainers wanted to readme 2020-05-21 09:16:10 +01:00
Vagrantfile Require YAML in Vagrantfile (#344) 2016-05-16 14:36:51 +01:00
docker-compose-base.yml Add default.env and test.env and multiple docker-compose files to override settings 2017-02-13 14:48:07 +00:00
docker-compose-test.yml Minor docker-compose fixes 2017-08-21 18:04:12 +01:00
docker-compose.yml Minor docker-compose fixes 2017-08-21 18:04:12 +01:00
docker-entrypoint.sh Add Bash linting using bashate (#566) 2017-09-28 11:15:50 +01:00
example_local_config.yml Make Cabot work on 14.04 as well as 12.04 2015-01-21 19:35:55 -08:00
gunicorn.conf Don't use gevent anymore 2014-08-02 01:13:55 +01:00
makemigrations Added support for alert plugins 2015-02-09 12:34:36 +00:00
manage.py More tweaks for Python packaging 2014-03-05 17:05:26 -06:00
requirements-dev.txt Add isort configuration to sort imports 2017-10-17 10:50:45 +01:00
requirements-plugins.txt Add /api/oncall endpoint 2018-03-09 15:10:44 +00:00
requirements.txt upgrade social-auth packages to fix GitHub OAuth 2021-09-15 19:20:44 +02:00
setup.cfg Change multi_line_output mode to 0 for consistency with existing code 2018-04-23 10:31:44 +01:00
setup.py Handle running setup.py from non .git source 2017-03-29 14:48:14 +01:00
setup_dev.sh Clean repo 2014-01-05 17:24:04 +00:00
tox.ini codestyle: ignore rule W605 and change multiline condition to one line 2019-01-30 17:19:43 +01:00

README.md

Cabot

Build Status PyPI version Coverage Status License: MIT Gitter

Maintainers wanted

Cabot is stable and used by hundreds of companies and individuals in production, but it is not actively maintained. We would like to hand over maintenance of the project to one or more responsible and experienced maintainers. Please email cabot@arachnys.com with some information about yourself (github profile and/or CV) if you are interested.

Why choose Cabot

Cabot is a free, open-source, self-hosted infrastructure monitoring platform that provides some of the best features of PagerDuty, Server Density, Pingdom and Nagios without their cost and complexity. (Nagios, I'm mainly looking at you.)

It provides a web interface that allows you to monitor services (e.g. "Stage Redis server", "Production ElasticSearch cluster") and send telephone, sms or hipchat/email alerts to your on-duty team if those services start misbehaving or go down - all without writing a line of code. Best of all, you can use data that you're already pushing to Graphite/statsd to generate alerts, rather than implementing and maintaining a whole new system of data collectors.

You can alert based on:

  • Metrics from Graphite
  • Status code and response content of web endpoints
  • Jenkins build statuses

We built Cabot as a Christmas project at Arachnys because we couldn't wrap our heads around Nagios, and nothing else out there seemed to fit our use case. We're open-sourcing it in the hope that others find it useful.

Cabot is written in Python and uses Django, Bootstrap, Font Awesome and a whole host of other goodies under the hood.

Screenshots

Services dashboard

Services dashboard

Single service overview

Individual service overview

Quickstart

Using Docker: Deploy in 5 minutes or less using official quickstart guide at cabotapp.com. (See also https://hub.docker.com/r/cabotapp/cabot/)

How it works

Docs have moved to cabotapp.com

Sections:

For those who want to contribute:

FAQ

Why "Cabot"?

My dog is called Cabot and he loves monitoring things. Mainly the presence of food in his immediate surroundings, or perhaps the frequency of squirrel visits to our garden. He also barks loudly to alert us on certain events (e.g. the postman coming to the door).

Cabot watching... something

It's just a lucky coincidence that his name sounds like he could be an automation tool.

API

The API has automatically generated documentation available by browsing https://cabot.yourcompany.com/api. The browsable documentation displays example GET requests and lists other allowed HTTP methods.

To view individual items, append the item id to the url. For example, to view graphite_check 1, browse:

/api/graphite_checks/1/

Authentication

The API allows HTTP basic auth using standard Django usernames and passwords as well as session authentication (by submitting the login form on the login page). The API similarly uses standard Django permissions to allow and deny API access.

All resources are GETable by any authenticated user, but individual permissions must be granted for POST, PUT, and other write methods.

As an example, for POST access to all status_check subclasses, add the following permissions:

cabotapp | status check | Can add graphite status check
cabotapp | status check | Can add http status check
cabotapp | status check | Can add icmp status check
cabotapp | status check | Can add jenkins status check

Access the Django admin page at https://cabot.yourcompany.com/admin to add/remove users, change user permissions, add/remove groups for group-based permission control, and change group permissions.

Sorting and Filtering

Sorting and filtering can be used by both REST clients and on the browsable API. All fields visible in the browsable API can be used for filtering and sorting.

Get all jenkins_checks with debounce enabled and CRITICAL importance:

https://cabot.yourcompany.com/api/jenkins_checks/?debounce=1&importance=CRITICAL

Sort graphite_checks by name field, ascending:

https://cabot.yourcompany.com/api/graphite_checks/?ordering=name

Sort by name field, descending:

https://cabot.yourcompany.com/api/graphite_checks/?ordering=-name

Other (non-Cabot specific) examples are available in the Django REST Framework documentation.

License

See LICENSE file in this repo.