A system to manage alerts programmatically with defined actions.
alert_manager/ ├── app.py ├── enrich.py ├── actions.py ├── handlers/ │ ├── init.py │ └── handler.py ├── requirements.txt ├── README.md └── config.py
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Run the server:
python app.py
- Run Docker Build command with the use of Dockfile
- Build the Image and push to repository
- To Deploy in K8s use
kubectl create -f Flask-deployment/flask-deployment.yml
,kubectl create -f Flask-deployment/flask-service.yml
- Please update the promethues and alertmanager config files which are given in alertmanager-configuration
To add new handling pipelines, create a new module in the handlers
directory and implement the handling logic. Ensure the new handler is invoked appropriately in the app.py
or actions.py
.