Where does prometheus tsdb stored

61 views
Skip to first unread message

nina guo

unread,
May 28, 2021, 3:28:51 AM5/28/21
to Prometheus Users
hi,

Where does prometheus tsdb stored?

Is it stored in memory? Yes if, when will it be flushed to local storage?

Bjoern Rabenstein

unread,
Jun 9, 2021, 3:46:22 PM6/9/21
to nina guo, Prometheus Users
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
Reply all
Reply to author
Forward
0 new messages