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

Using time units ['1s','1m','1h','1d','1w'] for silence in plugin 'prometheus' #400

Open
veter2005 opened this issue Dec 2, 2023 · 2 comments

Comments

@veter2005
Copy link

Prometheus plugin allows to use day unit for setting silence duration, but it's useful to use other units like minutes, hours, and so on.

Replace ALERTMANAGER_SILENCE_DAYS with ALERTMANAGER_SILENCE_PERIOD that can be one of the units ['1s','1m','1h','1d','1w']

@veter2005
Copy link
Author

veter2005 commented Dec 2, 2023

My version of how it can be done here
master...veter2005:alerta-contrib:issues_400

@hyberdk
Copy link

hyberdk commented Dec 4, 2023

if it were me I would keep backwards compatibility, so that if you dont do any day unit, it assumes that its days..

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

No branches or pull requests

2 participants