Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPrometheus high memory usage,How should i optimize? #1881
Comments
This comment has been minimized.
This comment has been minimized.
|
You find documentation about tweaking memory usage here: 90G seems rather high, but cAdvisor can accumulate quite a lot of metrics, On Wed, Aug 10, 2016 at 4:35 AM barnettZQG notifications@github.com wrote:
|
This comment has been minimized.
This comment has been minimized.
|
The metrics number of cAdvisor less than node-exporter. |
grobie
added
kind/question
component/local storage
labels
Aug 10, 2016
This comment has been minimized.
This comment has been minimized.
|
@barnettZQG Some information about the total number of memory series, ingested samples per second, in-memory chunks, and received queries would be interesting. Could you execute the following queries and tell us the results:
|
This comment has been minimized.
This comment has been minimized.
|
@juliusv |
This comment has been minimized.
This comment has been minimized.
|
@juliusv I thank is there some problem with IO? |
brian-brazil
closed this
Feb 13, 2017
This comment has been minimized.
This comment has been minimized.
dobesv
commented
Apr 4, 2018
|
This link https://prometheus.io/docs/operating/storage/#memory-usage doesn't seem to lead to any information about prometheus memory usage (any more). It just discusses on disk usage. |
This comment has been minimized.
This comment has been minimized.
|
@dobesv Good point, the three "Troubleshooting" FAQ items are about Prometheus 1.x, so we should either remove them or clarify that they are about 1.x and qualify the link to point at the versioned docs at https://prometheus.io/docs/prometheus/1.8/storage/#memory-usage |
This comment has been minimized.
This comment has been minimized.
|
I filed a pull request to qualify the version: prometheus/docs#998 |
This comment has been minimized.
This comment has been minimized.
dobesv
commented
Apr 5, 2018
|
Heh, unfortunately I'm using prometheus 2.0.0 and running out of memory. Where should I look for guidance on understanding and managing memory consumption ? |
This comment has been minimized.
This comment has been minimized.
|
I'm not sure that there's already a doc about 2.x memory consumption anywhere. @fabxc or @gouthamve can probably give the best explanation, but according to my understanding:
|
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
barnettZQG commentedAug 10, 2016
Now,my prometheus server manager the exporter of number more than 160,including node-exporter,cAdvisor and mongodb-exporter. scrape them every 5 seconds.
I saw Prometheus resource usage about as follows:
CPU:100% to 1000%(The machine has 10 CPU, 40 CORE)
MEM:90G
The above data is normal?How to optimize them?Because of my monitoring needs to rise to more than 1000 exporter