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 memory leak and keeps restarting #5013
Comments
This comment has been minimized.
This comment has been minimized.
|
debug.tar.gz |
This comment has been minimized.
This comment has been minimized.
|
You have too many metrics: your Prometheus is reporting 40M timeseries in the current head. There's no way a single Prometheus instance can cope with this load. You need either to drop some metrics or shard your targets across several Prometheus servers. |
simonpasquier
closed this
Dec 21, 2018
This comment has been minimized.
This comment has been minimized.
|
@simonpasquier, thanks . Merry Christmases May I know how many timeseries by a single Prometheus instance Prometheus recommend officially? |
This comment has been minimized.
This comment has been minimized.
|
There's no official recommendation but 10M of series is probably the upper bound. Check this slide deck (p28 in particular). |
This comment has been minimized.
This comment has been minimized.
bamb00
commented
Mar 4, 2019
|
Hi @simonpasquier, How do I determine the timeseries in the current head? I'm getting a OOMKilled (exit code 137) with resource limits at 2Gi was not enough. Thanks. |
This comment has been minimized.
This comment has been minimized.
|
@bamb00 check the |
FANLONGFANLONG commentedDec 19, 2018
•
edited
Proposal
Use case. Why is this important?
“Nice to have” is not a good use case. :)
Bug Report
What did you do?

Reboot host running Prometheus.
What did you expect to see?
Normal operation.
What did you see instead? Under which circumstances?
memory leak, prometheus keep restarting
Environment
kubernetes 1.10
System information:
insert output of
uname -srmherePrometheus version:
prometheus 2.4.3( we also try 2.6.0 rc1 but the problem is same)
insert output of
prometheus --versionhereAlertmanager version:
insert output of
alertmanager --versionhere (if relevant to the issue)Prometheus configuration file: