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

How much time an alert takes to fire #4437

Closed
debbiswal opened this Issue Jul 30, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@debbiswal
Copy link

debbiswal commented Jul 30, 2018

Hi ,
I have an alert rule configured in Prometheus is like this :
- alert: K8SSchedulerDown
expr: absent(up{job="kube-scheduler"} == 1)
for: 5m
labels:
severity: critical

And the AlertManager is configured with default 'repeat_interval' to 3 minutes.

I have 2 questions :

  1. How much time it will take for the above alert to move to PENDING state , and How much time it will take to move to FIRING state. Is 5(Inactive to Pending )+5 (Pending to Firing) minutes , it takes to FIRING.
  2. If the alert will be moved to FIRING state after 5 or 10 minutes , then why I am getting alerts in 3 minutes(is it due to the repeat_interval settings)
@simonpasquier

This comment has been minimized.

Copy link
Member

simonpasquier commented Jul 30, 2018

The alert will be in firing state after 5 minutes (+ up to the evaluation interval of the rules group).
Then AlertManager will notify the alert after group_wait of the matching route.

I'm closing it for now. If you have further questions, please use our user mailing list, which you can also search.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Jul 30, 2018

@debbiswal

This comment has been minimized.

Copy link
Author

debbiswal commented Jul 30, 2018

Yes @juliusv , Already I went through that . But if u see the diagram , as per Marco , 1 minute for switch from inactive to pending . And 1 more minute for switching from pending to firing state. So , does it take 2 minutes to fire?

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Jul 30, 2018

@debbiswal With a 1m eval duration and 1m for duration, that is the maximum time it should take, yes. Please take further usage questions to the mailing list and/or IRC channel though...

@debbiswal

This comment has been minimized.

Copy link
Author

debbiswal commented Jul 30, 2018

Thanks @juliusv .

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 22, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 22, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.