prometheus/model
George Krajcsovits aa81210c8b
NHCB scrape: refactor state handling and speed up scrape test (#15193)
* NHCB: scrape use state field and not booleans

From comment https://github.com/prometheus/prometheus/pull/14978#discussion_r1800898724

Also make compareLabels read only and move storeLabels to the first
processed classic histogram series.

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

* Speed up TestConvertClassicHistogramsToNHCB 3x

Reduce the startup time and timeouts

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

* lint fix

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

---------

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
2024-10-22 17:49:25 +01:00
..
exemplar lint: Revamp our linting rules, mostly around doc comments 2024-08-22 17:36:11 +02:00
histogram Corrects the behaviour of binary opperators between histogram and float (#14726) 2024-10-15 14:44:36 +02:00
labels Neater string vs byte-slice conversions (#14425) 2024-09-21 12:19:21 +02:00
metadata Fix: metadata API using wrong field names (#13633) 2024-02-26 09:53:39 +00:00
relabel Merge pull request #12180 from damnever/perf/relabel-add-label 2024-09-24 12:22:05 +01:00
rulefmt Merge pull request #11474 from clwluvw/group-label 2024-10-21 14:47:12 +01:00
textparse NHCB scrape: refactor state handling and speed up scrape test (#15193) 2024-10-22 17:49:25 +01:00
timestamp Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00
value Move packages out of deprecated pkg directory 2021-11-09 08:03:10 +01:00