Re: [prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Bo Liu
Sorry, forward to mail list manually. Liu Bo 于2023年3月31日 周五上午9:53写道: > Stuart Clark writes: > > > On 2023-03-30 12:48, Ben Kochie wrote: > >> No. As Brian says, it's intentional that this is not possible in order > >> to avoid load spikes. > > > > And as Ben mentioned earlier the normal scrape i

Re: [prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Stuart Clark
On 2023-03-30 12:48, Ben Kochie wrote: No. As Brian says, it's intentional that this is not possible in order to avoid load spikes. And as Ben mentioned earlier the normal scrape intervals are usually 15/30 seconds for normal metrics, or 1/2 minutes for slower use cases. Therefore you'd only

Re: [prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Ben Kochie
No. As Brian says, it's intentional that this is not possible in order to avoid load spikes. On Thu, Mar 30, 2023, 12:46 Liu Bo wrote: > Ben Kochie writes: > > > Prometheus is optimized to scrape at least every 1m. The typical > > scrape interval is 15s. > > Thanks, so there's no way to activel

Re: [prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Brian Candler
AIUI, it spreads them over the scrape interval. If it didn't, then when you add a whole load of new targets, they would all be scraped simultaneously in huge regular bursts. On Thursday, 30 March 2023 at 11:46:06 UTC+1 Liu Bo wrote: > Ben Kochie writes: > > > Prometheus is optimized to scrape

Re: [prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Liu Bo
Ben Kochie writes: > Prometheus is optimized to scrape at least every 1m. The typical > scrape interval is 15s. Thanks, so there's no way to actively ask prometheus to pull the target's metrics? -- Liu Bo -- You received this message because you are subscribed to the Google Groups "Promethe

Re: [prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Ben Kochie
Prometheus is optimized to scrape at least every 1m. The typical scrape interval is 15s. On Thu, Mar 30, 2023 at 12:01 PM Liu Bo wrote: > > Hi guys, can I make prometheus to pull metrics from a target immediately > after add this target to config? > > For now I have to wait scrape_interval after

[prometheus-users] Immediately pull metrics from target

2023-03-30 Thread Liu Bo
Hi guys, can I make prometheus to pull metrics from a target immediately after add this target to config? For now I have to wait scrape_interval after I add target to config, it's like if I set scrape_interval to 5m then I have to wait five minutes so that I cat query metrics from newly added ta