Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alert manager #298

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Alert manager #298

wants to merge 3 commits into from

Conversation

jose-caballero
Copy link

Handle silence events in Kayobe's alertmanager.

Create the ancillary files needed to implement a library to manage
silences in AlertManager:
* a file to handle credentials
* a file with the list of attributes in a Silence instance

This directory and its files have been created following the existing
content for icinga as guidance
Copy link

codecov bot commented Jan 16, 2025

Codecov Report

Attention: Patch coverage is 0% with 98 lines in your changes missing coverage. Please review.

Project coverage is 96.08%. Comparing base (cb2e86b) to head (4e7d058).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
lib/alertmanager_api/silence.py 0.00% 67 Missing ⚠️
lib/structs/alertmanager/alertmanager_account.py 0.00% 23 Missing ⚠️
lib/structs/alertmanager/silence_details.py 0.00% 8 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #298      +/-   ##
==========================================
- Coverage   98.14%   96.08%   -2.06%     
==========================================
  Files         126      129       +3     
  Lines        4575     4673      +98     
  Branches      242      257      +15     
==========================================
  Hits         4490     4490              
- Misses         76      174      +98     
  Partials        9        9              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Implement a class with the functionalities to call AlertManager.
This is a first implementation with methods to:
* Schedule a Silence
* Removed a previously scheduled Silence

The code has been written using the existing one for
icinga as guidance.
Create the basic directories and files needed for unittest.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant