prometheus/docs
George Krajcsovits 17be8f1ddf tsdb: add histograms-st-encoding feature flag (#18912)
* tsdb: add histograms-st-encoding feature flag

Decouple the ST-capable histogram chunk encodings (EncHistogramST,
EncFloatHistogramST) from the xor2-encoding feature flag and gate them
behind a new histograms-st-encoding flag instead. Previously
--enable-feature=xor2-encoding turned on both the float XOR2 encoding
and the histogram ST encodings via a single useXOR2 boolean; that
conflated two independent on-disk formats and made it impossible to opt
into one without the other.

ValueType.ChunkEncoding and NewChunk now take separate useXOR2 and
useHistogramST flags. Dispatch only consumes the relevant flag per
value type; data-driven callers that gate on actual ST presence in the
samples (storage/series.go, tsdb/querier.go, tsdb/chunks/chunks.go)
pass hasST for both. tsdb.Options gains EnableHistogramSTEncoding;
tsdb.HeadOptions gains a matching atomic.Bool. The new flag is
propagated through chunkOpts/headAppenderBase and read at every site
that currently reads EnableXOR2Encoding (head append v1/v2, head_wal
WAL/WBL replay, ooo_head_read).

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

* update features testdata

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>

---------

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2026-06-17 09:37:47 -07:00
..
command-line tsdb: add histograms-st-encoding feature flag (#18912) 2026-06-17 09:37:47 -07:00
configuration scrape: add more native-histogram related internal labels 2026-06-15 13:17:46 +00:00
images prometheus-agent-documentation 2024-07-27 14:21:24 +01:00
querying scrape: add more native-histogram related internal labels 2026-06-15 13:17:46 +00:00
feature_flags.md tsdb: add histograms-st-encoding feature flag (#18912) 2026-06-17 09:37:47 -07:00
federation.md feat(nh): mark native histograms as stable in docs 2025-10-24 12:31:42 +02:00
getting_started.md docs(): fix gettingStarted outdated graph reference 2025-09-15 17:31:18 +02:00
http_sd.md fix(discovery): delete expired refresh metrics on reload (#17614) 2026-04-02 13:43:35 +01:00
index.md Update Prometheus Agent doc (#17591) 2025-11-21 11:34:19 +01:00
installation.md Standardize doc page title handling 2025-05-28 21:37:27 +02:00
management_api.md Standardize doc page title handling 2025-05-28 21:37:27 +02:00
migration.md Merge pull request #16155 from LukoJy3D/docs/migration/clarify_on_content_type_headers 2026-03-31 12:58:48 +01:00
prometheus_agent.md fix(docs): typo in prometheus_agent.md doc 2026-02-08 19:02:56 +03:30
stability.md chore: exclude experimental /v1/ endpoints from stability guarantees 2025-08-12 16:45:17 +02:00
storage.md Merge pull request #14317 from anarcat/wal-backups 2025-12-16 11:35:43 +00:00