mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-02 08:31:11 -08:00
Update wal.md that the first wal entry includes only base id and timestamp without a value (#562)
Signed-off-by: naivewong <867245430@qq.com>
This commit is contained in:
parent
837ae9aaa0
commit
1c392d0057
|
@ -54,14 +54,16 @@ Series records encode the labels that identifies a series and its unique ID.
|
||||||
|
|
||||||
Sample records encode samples as a list of triples `(series_id, timestamp, value)`.
|
Sample records encode samples as a list of triples `(series_id, timestamp, value)`.
|
||||||
Series reference and timestamp are encoded as deltas w.r.t the first sample.
|
Series reference and timestamp are encoded as deltas w.r.t the first sample.
|
||||||
|
The first row stores the starting id and the starting timestamp.
|
||||||
|
The first sample record begins at the second row.
|
||||||
|
|
||||||
```
|
```
|
||||||
┌──────────────────────────────────────────────────────────────────┐
|
┌──────────────────────────────────────────────────────────────────┐
|
||||||
│ type = 2 <1b> │
|
│ type = 2 <1b> │
|
||||||
├──────────────────────────────────────────────────────────────────┤
|
├──────────────────────────────────────────────────────────────────┤
|
||||||
│ ┌────────────────────┬───────────────────────────┬─────────────┐ │
|
│ ┌────────────────────┬───────────────────────────┐ │
|
||||||
│ │ id <8b> │ timestamp <8b> │ value <8b> │ │
|
│ │ id <8b> │ timestamp <8b> │ │
|
||||||
│ └────────────────────┴───────────────────────────┴─────────────┘ │
|
│ └────────────────────┴───────────────────────────┘ │
|
||||||
│ ┌────────────────────┬───────────────────────────┬─────────────┐ │
|
│ ┌────────────────────┬───────────────────────────┬─────────────┐ │
|
||||||
│ │ id_delta <uvarint> │ timestamp_delta <uvarint> │ value <8b> │ │
|
│ │ id_delta <uvarint> │ timestamp_delta <uvarint> │ value <8b> │ │
|
||||||
│ └────────────────────┴───────────────────────────┴─────────────┘ │
|
│ └────────────────────┴───────────────────────────┴─────────────┘ │
|
||||||
|
|
Loading…
Reference in a new issue