Just found some useful article might explain this behavior and share it 
with you. Really appreciate Stuart's explanation on this case!

   - https://prometheus.io/docs/prometheus/latest/querying/basics/#staleness
   - https://www.robustperception.io/staleness-and-promql
   - https://www.robustperception.io/alerting-on-gauges-in-prometheus-2-0 


[email protected] 在 2020年7月16日 星期四上午2:53:00 [UTC+8] 的信中寫道:

> Hi Stuart,
>
> Thank yo so much for your quick response! I would like to go more details 
> for it.
>
> (1) Is there any official documentation has mentioned about this mechanism?
> (2) The default look back interval is 5 minutes. Is it configurable for 
> Prometheus and promtool during the unit testing for alert? 
>
> Honestly, I still couldn’t understand why Prometheus has this mechanism. 
> Just for this test case, it didn’t make sense to keep firing an alert 
> during the 3m to 7m, as the time series metrics has already gone. 
>
> Thank you so much!

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/50a79464-8a2f-4ed2-afb4-e53536cddc38n%40googlegroups.com.

Reply via email to