feat: NHCB: convert classic histograms to nhcb in scrape MVP#14978
Merged
feat: NHCB: convert classic histograms to nhcb in scrape MVP#14978
Conversation
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
…pend classic histogram series) Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
… if they are not actually histograms based on metadata Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
# Conflicts: # config/config.go # scrape/scrape.go
Member
|
Nice, let's review benchmark code #15083 and will check this PR out for review/efficiency assessment 👍🏽 |
# Conflicts: # scrape/scrape.go
…e name See Parser.Type() function. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Update test cases Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Scrape test for NHCB modified. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
On reviewer request. Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
#14978 (comment) Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
bwplotka
approved these changes
Oct 21, 2024
Member
bwplotka
left a comment
There was a problem hiding this comment.
Thanks! Only #14978 (comment)
bwplotka
previously approved these changes
Oct 21, 2024
krajorama
commented
Oct 21, 2024
Signed-off-by: George Krajcsovits <krajorama@users.noreply.github.com>
bwplotka
approved these changes
Oct 21, 2024
krajorama
added a commit
that referenced
this pull request
Oct 22, 2024
From comment #14978 (comment) 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>
bwplotka
pushed a commit
that referenced
this pull request
Oct 22, 2024
* NHCB: scrape use state field and not booleans From comment #14978 (comment) 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>
krajorama
added a commit
that referenced
this pull request
Oct 24, 2024
From: #14978 (comment) Also encode the requirement table set in #13532 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
krajorama
added a commit
that referenced
this pull request
Oct 24, 2024
From: #14978 (comment) Also encode the requirement table set in #13532 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
krajorama
added a commit
that referenced
this pull request
Oct 24, 2024
From: #14978 (comment) Also encode the requirement table set in #13532 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
krajorama
added a commit
that referenced
this pull request
Oct 24, 2024
…15209) From: #14978 (comment) Also encode the requirement table set in #13532 Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
julienduchesne
pushed a commit
to julienduchesne/prometheus
that referenced
this pull request
Dec 13, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Originally started in #14008 by @zenador
Partially addresses #13529 and #13532
MVP:
Supports any scrape protocol - I've tried with Protobuf and OpenMetrics1.0.0.
Supports multiple exemplars per histogram.
Assumes that metadata is present as it depends on that to detect classic histogram series for conversion. Thus naked histograms without
# TYPE histogramare not converted.Does not support created timestamp (
--enable-feature=created-timestamp-zero-ingestion).Does not support
# TYPE gaugehistogramyet.Before #14730 is implemented, reload from WAL does not work. Test with:
My sample config: