Automate deployment of monitoring tools
Project description
Monitoring automation project for Prometheus and ecosystem (in-progress)
One of the main problem that we face with microservices deployment is how to configure monitoring. With deployment being so dynamic its hard to make changes.
In this project we are trying to offload the management of monitoring. When a new project is added,
user adds user_input.yaml
and it will be picked up by CICD (in our case Jenkins).
Where will the monitoring be configured:
- Prometheus
- Blackbox
- Elastalert
- Pushgateway
- Pagerduty
- Slack
Pre-reqs:
- Running Elastalert
- Running Alertmanager
- Running Prometheus Monitoring
- Running Pushgateway
- Pagerduty account
- Slack account
- Kafka/Zookeper (when we wrote this project, we had a requirement to cleanup Kafka/Zookeeper)
Note:
- Docker image should have ssh keys to connect to git.
To create dummy data for testing:
verify if static-files directory exists:
DIR_NAME=demo1
BASE_PATH='/Users/varun.tomar/Documents/personal_github'
mkdir -p $BASE_PATH/mauto/$DIR_NAME/demo-data/monitoring/static-files
verify if alertmanager config file exists:
mkdir -p $BASE_PATH/mauto/$DIR_NAME/demo-data/alertmanager
cp $BASE_PATH/mauto/data/demo-data/alertmanager/config.yaml $BASE_PATH/mauto/$DIR_NAME/demo-data/alertmanager/config.yaml
verify if prometheus config file exists:
mkdir -p $BASE_PATH/mauto/junk/demo-data/monitoring/
cp $BASE_PATH/mauto/data/demo-data/monitoring/config.yaml $BASE_PATH/mauto/junk/demo-data/monitoring/
How to use?
- run
pip install mauto
- run
muato
for available options
Note:
-
Trying to make it modular or plug and play type so new components can be added easily.
-
I am using
click
to create python cli. -
Python 3.6 and above is required
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mauto-0.0.1.dev12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e4172338acff4c907c82c96ef5b8afa36e851fd8c43b03940d4eda48937ee7b |
|
MD5 | 534f4ae04d9a2980f21e1c3e16e325c7 |
|
BLAKE2b-256 | 16d3fb8b66aed161490c3a6695d3779a14e2c881f54c6935c7c69d578907bffd |