'How to analyze loki storage space?
Today the disk space used by Loki has filled up. Is there a dashboard or function in Loki to identify which PODSs generated the most logs?
Something besides loki-canary?
I have never used this tool and I don't know if it is right for me
Solution 1:[1]
You can analyse the logs generation with the following LogQL:
topk(10,count_over_time({filename=~".+"}[1h]))
Change the "{filename=~".+"}" stream selector and the "1h" log range as desired.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Aleksandr Dubinsky |
