On 28.05.21 00:28, nina guo wrote:
>
> Where does prometheus tsdb stored?
>
> Is it stored in memory? Yes if, when will it be flushed to local storage?
It is stored on local disk, at a location defined via the
--storage.tsdb.path flag.
It is, kind of, continuously flushed to storage via a write-ahead log
(WAL). If you want to know details, there are a ton of talks and posts
on the internet. Perhaps start with Ganesh's blog past series, part 1
is here:
https://ganeshvernekar.com/blog/prometheus-tsdb-the-head-block/
--
Björn Rabenstein
[PGP-ID] 0x851C3DA17D748D03
[email]
bjo...@rabenste.in