prometheus/model/textparse
beorn7 ad7d1aed99 Phase out native histogram feature flag
The detailed plan for this is laid out in
https://github.com/prometheus/prometheus/issues/16572 .

This commit adds a global and local scrape config option
`scrape_native_histograms`, which has to be set to true to ingest
native histograms.

To ease the transition, the feature flag is changed to simply set the
default of `scrape_native_histograms` to true.

Further implications:

- The default scrape protocols now depend on the
  `scrape_native_histograms` setting.
- Everywhere else, histograms are now "on by default".

Documentation beyond the one for the feature flag and the scrape
config are deliberately left out. See
https://github.com/prometheus/prometheus/pull/17232 for that.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-10-15 14:50:52 +02:00
..
testdata textparse: Refactor benchmark testdata for all types. (#15998) 2025-02-10 12:26:18 +00:00
benchmark_test.go Phase out native histogram feature flag 2025-10-15 14:50:52 +02:00
interface.go Phase out native histogram feature flag 2025-10-15 14:50:52 +02:00
interface_test.go refactor(textparse): Introduce Variadic options in textParse.New (#17155) 2025-09-11 10:49:42 +01:00
nhcbparse.go fix(textparse/protobuf): metric family name corrupted by NHCB parser (#17156) 2025-09-08 17:26:41 +02:00
nhcbparse_test.go refactor(textparse): Introduce Variadic options in textParse.New (#17155) 2025-09-11 10:49:42 +01:00
openmetricslex.l bugfix: allow quoted exemplar keys in openmetrics text format 2024-11-12 15:29:44 +00:00
openmetricslex.l.go bugfix: allow quoted exemplar keys in openmetrics text format 2024-11-12 15:29:44 +00:00
openmetricsparse.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
openmetricsparse_test.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00
promlex.l UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
promlex.l.go UTF-8: Add support for parsing UTF8 metric and label names 2024-02-15 14:34:37 -05:00
promparse.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
promparse_test.go feature: type-and-unit-labels (PROM-39 implementation) (#16228) 2025-05-17 09:37:25 +00:00
protobufparse.go Phase out native histogram feature flag 2025-10-15 14:50:52 +02:00
protobufparse_test.go Phase out native histogram feature flag 2025-10-15 14:50:52 +02:00
README.md Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00

Making changes to textparse lexers

In the rare case that you need to update the textparse lexers, edit promlex.l or openmetricslex.l and then run the following command: golex -o=promlex.l.go promlex.l

Note that you need golex installed: go get -u modernc.org/golex