prometheus/web
beorn7 9e500345f3 textparse/scrape: Add option to scrape both classic and native histograms
So far, if a target exposes a histogram with both classic and native
buckets, a native-histogram enabled Prometheus would ignore the
classic buckets. With the new scrape config option
`scrape_classic_histograms` set, both buckets will be ingested,
creating all the series of a classic histogram in parallel to the
native histogram series. For example, a histogram `foo` would create a
native histogram series `foo` and classic series called `foo_sum`,
`foo_count`, and `foo_bucket`.

This feature can be used in a migration strategy from classic to
native histograms, where it is desired to have a transition period
during which both native and classic histograms are present.

Note that two bugs in classic histogram parsing were found and fixed
as a byproduct of testing the new feature:

1. Series created from classic _gauge_ histograms didn't get the
   _sum/_count/_bucket prefix set.
2. Values of classic _float_ histograms weren't parsed properly.

Signed-off-by: beorn7 <beorn@grafana.com>
2023-05-13 01:32:25 +02:00
..
api/v1 web: display GOMEMLIMIT in runtime info 2023-04-23 20:24:34 +02:00
ui [WebUI/ScrapePoolList] Case-insensitive search of "Scrape Pools" (#12207) 2023-04-02 11:37:58 +02:00
federate_test.go textparse/scrape: Add option to scrape both classic and native histograms 2023-05-13 01:32:25 +02:00
federate.go Name float values as "floats", not as "values" 2023-04-13 19:25:24 +02:00
web_test.go /-/{healthy,ready}/ respond to HEAD (#11160) 2022-08-16 21:06:26 +02:00
web.go web: display GOMEMLIMIT in runtime info 2023-04-23 20:24:34 +02:00