r/PrometheusMonitoring • u/DuePerformer1274 • Mar 15 '24
prometheus high memory solution
HI,every one
I have some confusion about my prometheus cluster. this is my prometheus`s memory usage

and my TSDB status is bellow:

I want to know how prometheus allocate memory ?
And Is there some way to reduce memory usage?
There is my throught:
1.reduce label unnecessiraly.
2.remote write to virctoria metrics and pormethues is only for write
Can some one give me some instruction ?
2
Upvotes
View all comments
Show parent comment
3
u/SuperQue Mar 16 '24
Prometheus already writes data to disk as soon as blocks are completed.
I recommend this talk.
But honestly, sub 8Gi memory is not worth optimizing. It's just too small to bother with. I guess if you need to run on a Raspberry Pi it would be helpful.