prometheus/scrape
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
..
testdata
clientprotobuf.go
helpers_test.go Histogram CT Zero ingestion 2024-09-26 11:29:22 -03:00
manager.go Rename convert_classic_histograms to convert_classic_histograms_to_nhcb 2024-10-21 13:22:58 +02:00
manager_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
metrics.go
scrape.go Update scrape/scrape.go 2024-10-21 16:01:34 +02:00
scrape_test.go NHCB scrape: refactor state handling and speed up scrape test (#15193) 2024-10-22 17:49:25 +01:00
target.go Remove no-default-scrape-port featureFlag 2024-09-25 10:13:19 -05:00
target_test.go Remove no-default-scrape-port featureFlag 2024-09-25 10:13:19 -05:00