Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-26 Thread nina guo
Hi Stuart, Brian I checked the blackbox exporter logs as below for module check_smtp, seems only every 30 secs, the next probe started. But actually I set the scrape_interval for this job is 60s.. 07:54:34 Beginning probe 07:55:05 Beginning probe 07:55:34 Beginning probe 07:56:05 Beginning

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-26 Thread nina guo
Hi Stuart, Brian I checked the blackbox exporter logs as below for module check_smtp, seems only every 30 secs, the next probe started. But actually I set the scrape_interval for this job is 60s.. 07:54:34 Beginning probe 07:55:05 Beginning probe 07:55:34 Beginning probe 07:56:05 Beginning

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-25 Thread Stuart Clark
On 2022-07-25 09:18, nina guo wrote: Thank you Stuart. May I ask why the maximum if 2.5mins? By default Prometheus will look back for a maximum of 5 minutes to find the "most recent" data point. Therefore if there was no data recorded in the past 5 minutes a "no value" would be returned, an

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-25 Thread nina guo
Thank you Stuart. May I ask why the maximum if 2.5mins? On Monday, July 25, 2022 at 3:52:47 PM UTC+8 Stuart Clark wrote: > On 25/07/2022 08:28, nina guo wrote: > > And one more question pls, I checked the log that the probe is sending > > every 2-3 seconds, can I adjust this frequency to about

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-25 Thread nina guo
Thank you very much Stuart Got it. On Monday, July 25, 2022 at 3:52:47 PM UTC+8 Stuart Clark wrote: > On 25/07/2022 08:28, nina guo wrote: > > And one more question pls, I checked the log that the probe is sending > > every 2-3 seconds, can I adjust this frequency to about 1min? > Yes that's the

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-25 Thread Stuart Clark
On 25/07/2022 08:28, nina guo wrote: And one more question pls, I checked the log that the probe is sending every 2-3 seconds, can I adjust this frequency to about 1min? Yes that's the scrape frequency, so you can adjust the job configuration up to a maximum of about 2.5 minutes. -- Stuart Cla

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-25 Thread nina guo
And one more question pls, I checked the log that the probe is sending every 2-3 seconds, can I adjust this frequency to about 1min? On Monday, July 25, 2022 at 3:23:29 PM UTC+8 nina guo wrote: > Got it thank you both Brian and Stuart. > > On Monday, July 25, 2022 at 2:52:20 PM UTC+8 Stuart Clar

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-25 Thread nina guo
Got it thank you both Brian and Stuart. On Monday, July 25, 2022 at 2:52:20 PM UTC+8 Stuart Clark wrote: > On 25/07/2022 01:08, nina guo wrote: > > Thank you Brian. " up to T - 5 minutes ", this 5 mins is the scraping > > interval? > > No. The scraping interval doesn't matter. Prometheus will b

Re: [prometheus-users] Re: blackbox metrics scraping

2022-07-24 Thread Stuart Clark
On 25/07/2022 01:08, nina guo wrote: Thank you Brian. " up to T - 5 minutesĀ  ", this 5 mins is the scraping interval? No. The scraping interval doesn't matter. Prometheus will by default look back at most 5 minutes for a value. -- Stuart Clark -- You received this message because you are su

[prometheus-users] Re: blackbox metrics scraping

2022-07-24 Thread nina guo
Thank you Brian. " up to T - 5 minutes ", this 5 mins is the scraping interval? On Monday, July 25, 2022 at 4:43:33 AM UTC+8 Brian Candler wrote: > The alerting rules run on their own schedule, separately from the scraping > schedule. > > The expression "probe_success == 0" uses the value of t

[prometheus-users] Re: blackbox metrics scraping

2022-07-24 Thread Brian Candler
The alerting rules run on their own schedule, separately from the scraping schedule. The expression "probe_success == 0" uses the value of that metric in the prometheus TSDB *at the current instant of time*. However, the value of a metric at any given time T is the most recent value *on or befo