Reduce the overall alert count by judging alerts in dependency with their peers in history.
- Download and checkout the git project
git clone https://github.com/sapcc/alertmagnet
- Setup virtual environment
python3 -m venv .venv/
- Activate the
.venv
. .venv/bin/activate
- Install dependencies
pip install -r requirements.txt
- Run the program
python main.py -a "https://this/target/url/shoudl/end/with/something/like/api/v1/" -c "./relative_path_to_your_certificates_if_you_neew/certificate.pem" -p "/directory/to/store/your/query_results" -b 90 -t 150
Parameter explanation:
- - a, api endpoint to query against [required]
- - c, relative path to the certificate which is used to create the request
- - p, directory path in which the query results are stored
- - b, Threshold in days which specifies when the data are interpolated by Thanos This helps splitting the queries due to efficiency and resource optimization
- - t, number of seconds the client will wait for the server to send a response [default: 30]
Tip
Run the following command to get an overview about all available command line parameters
python main.py --help