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 upHow much memory does Prometheus need at least? #4877
Comments
This comment has been minimized.
This comment has been minimized.
|
In our case, a prometheus instance with about 200 targets and 5 seconds of scrape interval, uses 4G ~ 5G memory. What's scale of your prometheus? |
This comment has been minimized.
This comment has been minimized.
|
No more than 100 and 30 seconds scrape interval, Why memory usage has been increasing. |
This comment has been minimized.
This comment has been minimized.
|
Do you have some queries/alerts/rules which fetch too many metrics? |
This comment has been minimized.
This comment has been minimized.
|
I use Prometheus to collect data and grafana to display.I'm not sure is grafana showing too many queries.Do you use grafana? |
This comment has been minimized.
This comment has been minimized.
|
We use grafana too. Our dashboards shows metrics about 30min~6h. That means grafana will query data in the past 6h at most. |
This comment has been minimized.
This comment has been minimized.
|
Thank you for your answer.I'll try to adjust. |
This comment has been minimized.
This comment has been minimized.
|
Thanks for your report. It looks as if this is actually a question about usage and not development. BTW You shouldn't need to tweak the To make your question, and all replies, easier to find, we suggest you move this over to our user mailing list, which you can also search. If you prefer more interactive help, join or our IRC channel, #prometheus on irc.freenode.net. Please be aware that our IRC channel has no logs, is not searchable, and that people might not answer quickly if they are busy or asleep. If in doubt, you should choose the mailing list. Once your questions have been answered, please add a short line pointing to relevant replies in case anyone stumbles here via a search engine in the future. |
UnicornSymbol commentedNov 19, 2018
When I use 4G memory to run, prometheus2.0 memory usage has been increasing until it dies.
`- "--config.file=/etc/prometheus/prometheus.yml"