Open balajisa09 opened 3 months ago
Do you know if the data is being deleted or just not being queried? Can you see blocks older than 5h in disk if you check /data
?
Also we should have some logs when deleting blocks.
msg="Deleting obsolete block" block=blockId
Can you see those logs? Is it possible to check how old the blocksIds being deleted are? You can try to look for other logs with blockId or if luck still get info from block on disk.
Describe the bug I am running Cortex in single binary mode in kubernetes with pvc, and I have noticed that metrics are not being persisted for more than 5 hours. I have attached the config. I have a prometheus instance sending metrics to cortex via remotewrite. There are enough space in the disk too.
To Reproduce Steps to reproduce the behavior:
Expected behavior The metrics to stay for the give retention period in cortex config.
Environment:
Additional Context
cortex config:
prometheus remotewrite config: