Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: 通过tiup reload prometheus,发现prometheus 丢失了半小时的数据,想请问下prometheus wal的落盘机制?
After restarting Prometheus, I found that Prometheus lost half an hour of data. I would like to ask about the disk persistence mechanism of Prometheus WAL. Based on the results, it seems that Prometheus WAL logs are not written to disk for every piece of data. Is it possible that they are written to disk after a certain period of time or after reaching a certain amount?