2019-03-18 12:44:58 +00:00
|
|
|
# TSDB
|
2017-04-10 11:29:46 +00:00
|
|
|
|
2019-10-24 10:05:47 +00:00
|
|
|
[![GoDoc](https://godoc.org/github.com/prometheus/prometheus/tsdb?status.svg)](https://godoc.org/github.com/prometheus/prometheus/tsdb)
|
2018-05-07 09:10:31 +00:00
|
|
|
|
2020-10-19 11:47:10 +00:00
|
|
|
This directory contains the Prometheus storage layer that is used in its 2.x releases.
|
2017-04-10 11:29:46 +00:00
|
|
|
|
|
|
|
A writeup of its design can be found [here](https://fabxc.org/blog/2017-04-10-writing-a-tsdb/).
|
2018-01-09 15:40:05 +00:00
|
|
|
|
2018-10-23 10:43:06 +00:00
|
|
|
Based on the Gorilla TSDB [white papers](http://www.vldb.org/pvldb/vol8/p1816-teller.pdf).
|
|
|
|
|
2018-06-04 12:41:43 +00:00
|
|
|
Video: [Storing 16 Bytes at Scale](https://youtu.be/b_pEevMAC3I) from [PromCon 2017](https://promcon.io/2017-munich/).
|
|
|
|
|
2018-01-09 15:40:05 +00:00
|
|
|
See also the [format documentation](docs/format/README.md).
|
2020-10-19 11:47:10 +00:00
|
|
|
|
|
|
|
A series of blog posts explaining different components of TSDB:
|
|
|
|
* [The Head Block](https://ganeshvernekar.com/blog/prometheus-tsdb-the-head-block/)
|
|
|
|
* [WAL and Checkpoint](https://ganeshvernekar.com/blog/prometheus-tsdb-wal-and-checkpoint/)
|
|
|
|
* [Memory Mapping of Head Chunks from Disk](https://ganeshvernekar.com/blog/prometheus-tsdb-mmapping-head-chunks-from-disk/)
|
2021-01-21 11:44:40 +00:00
|
|
|
* [Persistent Block and its Index](https://ganeshvernekar.com/blog/prometheus-tsdb-persistent-block-and-its-index/)
|
|
|
|
* [Queries](https://ganeshvernekar.com/blog/prometheus-tsdb-queries/)
|