--storage.tsdb.retention=10m
--
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 prometheus-users+unsubscribe@googlegroups.com.
To post to this group, send email to prometheus-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/82c053b8-125e-4227-8c10-dcb8b40d632d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Decreasing the retention period to less than 6 hours isn't recommended. Also there's no support right now for a "storage-less" mode (I think there's an issue somewhere but it isn't a high-priority for the project).Also memory usage depends on the number of scraped targets/metrics so without knowing the numbers, it's hard to know whether the usage you're seeing is expected or not.When you say "the remote prometheus gets metrics from the local prometheus periodically", do you mean that you federate all metrics?
On Mon, Aug 13, 2018 at 3:32 PM, <wangchao...@gmail.com> wrote:
I found today that the prometheus consumes lots of memory(avg 1.75GB) and CPU (avg 24.28%). There are two prometheus instances, one is the local prometheus, the other is the remote prometheus instance. The local prometheus gets metrics from different metrics endpoints inside a kubernetes cluster, while the remote prometheus gets metrics from the local prometheus periodically (scrape_interval is 20 seconds).It's the local prometheus which is consuming lots of CPU and memory. The retention configured for the local prometheus is 10 minutes.
--storage.tsdb.retention=10mI am thinking how to decrease the memory and CPU usage of the local prometheus. Since the remote prometheus gets metrics from local prometheus once every 20 seconds, so probably we can configure a small retention value (i.e. 2 minutes) for the local prometheus so as to reduce the size of the memory cache? Does it make sense?Do anyone have any ideas on how to reduce the CPU usage?Thanks!
--
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 prometheus-use...@googlegroups.com.
To post to this group, send email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/3b189eca-3c0e-430c-84a9-30b6cd212e09%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/5aa0ceb4-3309-4922-968d-cf1a36f0b258%40googlegroups.com.