The impact of reducing the Prometheus scrape interval

40 views
Skip to first unread message

yuan xiao

unread,
May 29, 2024, 11:23:59 AMMay 29
to Prometheus Users
What are the impacts of modifying the scraping interval of Prometheus from the default 1 minute to 30 seconds? For example, how should monitoring metrics and storage be calculated? Will they become twice the original?
Provide the approximate calculation formulas and methods for Prometheus storage space, monitoring metrics, and scraping intervals.

Bjoern Rabenstein

unread,
Jun 4, 2024, 9:00:15 AMJun 4
to yuan xiao, Prometheus Users
The answer is "it depends". The network traffic caused by the scrsape
and the CPU usage for sending and receiving the scrape payload itself
obviously doubles. However, the storage requirement might not increase
by much, because very similar or very regularly changing samples
compress very well. On the other hand, it might increase by a lot
(almost twice as much) if the metric values are more or less randomly
changing.

In practice, you simply have to try it out. You can use Prometheus to
monitor how the Prometheus resource usage changes. :o)

--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email] bjo...@rabenste.in
Reply all
Reply to author
Forward
0 new messages