Skip to content

Reduce the overall alert count by judging alerts in dependency with their peers in history.

License

Notifications You must be signed in to change notification settings

sapcc/alertmagnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

alertmagnet

Reduce the overall alert count by judging alerts in dependency with their peers in history.

Project Setup

  1. Download and checkout the git project
git clone https://github.com/sapcc/alertmagnet
  1. Setup virtual environment
python3 -m venv .venv/
  1. Activate the .venv
. .venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. 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

About

Reduce the overall alert count by judging alerts in dependency with their peers in history.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages