Prometheus Memory Issue Handling
Overview
We use Elastio for Prometheus management. Sometimes, the Prometheus instance may run out of memory.
When this happens:
- Prometheus stops working.
- A batch of alerts is sent to Slack.
To restore Prometheus, you need to clean up memory on the instance.
How to Validate the Issue
- Navigate to Elastio → Services.
- Choose the Prometheus instance
(currentlydev-prometheus, used for production). - Open the Logs tab.
- If you see
Out of memorymessages, the instance is affected.
- If you see
Steps to Clean Up Memory
On the Prometheus service page, click Open Terminal (in the header).
A terminal window will open in a new page.Check memory usage:
df -h- If most of the memory is taken by Docker, proceed to the next step.
Clean up unused Docker volumes:
docker volume prune- This command will remove all unused Docker volumes, freeing up memory.
After this cleanup, Prometheus should return to normal operation.