Filip Petkovski 6100e756a8 Ignore stale histograms for counter reset detection
The histogram stats decoder keeps track of the last seen histogram sample
in order to properly detect counter resets. We are seeing an issue where
a histogram with UnknownResetHint gets treated as a counter reset when it follows
a stale histogram sample.

I believe that this is incorrect since stale samples should be completely ignored
in PromQL. As a result, they should not be stored in the histogram stats iterator
and the counter reset detection needs to be done against the last non-stale sample.

Signed-off-by: Filip Petkovski <filip.petkovsky@gmail.com>
2024-08-08 08:56:55 +02:00
..
2024-07-05 15:25:42 +02:00
2024-01-17 22:26:32 +08:00
2024-07-05 15:25:42 +02:00
2023-11-11 19:22:06 +01:00
2021-02-22 20:28:02 +01:00
2023-12-11 12:18:54 +00:00
2022-10-07 16:20:20 +00:00
2023-12-11 12:18:54 +00:00
2024-07-03 09:28:38 -07:00

TSDB

GoPkg

This directory contains the Prometheus TSDB (Time Series DataBase) library, which handles storage and querying of all Prometheus v2 data.

Documentation

External resources

A series of blog posts explaining different components of TSDB: