Skip to content

Convert classic histograms to nhcb in scrape - #14008

Closed
zenador wants to merge 18 commits into
prometheus:mainfrom
zenador:nhcb-scrape
Closed

zenador wants to merge 18 commits into
prometheus:mainfrom
zenador:nhcb-scrape

Conversation

@zenador

@zenador zenador commented Apr 30, 2024 •

Copy link
Copy Markdown
Contributor

Partially addresses #13529 and #13532

Assumes that metadata is present as it depends on that to detect classic histogram series for conversion.

Status: Pretty much done except for the exemplar support.

Comment thread scrape/scrape.go Outdated
} else {
ref, err = app.Append(ref, lset, t, val)

if sl.convertClassicHistograms {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need another condition here to avoid the case the same series was scraped as exponential native histogram already.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may be able to depend on that the parser always returns native histogram first (p.Next()) and then then the float series of the same, but only if we add some unit tests to make sure.

Comment thread util/convertnhcb/convertnhcb.go Resolved
Comment thread scrape/scrape.go Resolved
@zenador
zenador force-pushed the nhcb-scrape branch 2 times, most recently from 8e6f99b to 7b162bf Compare May 8, 2024 12:40
@zenador
zenador force-pushed the nhcb-scrape branch 2 times, most recently from 970a0a7 to 6c1ab28 Compare June 12, 2024 16:25
@zenador
zenador force-pushed the nhcb-scrape branch 2 times, most recently from 198577e to 764e137 Compare June 24, 2024 10:03
@beorn7
beorn7 deleted the branch prometheus:main June 27, 2024 19:44
@beorn7 beorn7 closed this Jun 27, 2024
@beorn7 beorn7 reopened this Jul 2, 2024
@zenador
zenador changed the base branch from nhcb to main July 2, 2024 10:07
@zenador zenador changed the title [nhcb branch] Convert classic histograms to nhcb in scrape Convert classic histograms to nhcb in scrape Jul 2, 2024
zenador added 16 commits July 3, 2024 17:56
Signed-off-by: Jeanette Tan <[email protected]>
Signed-off-by: Jeanette Tan <[email protected]>
…pend classic histogram series)

Signed-off-by: Jeanette Tan <[email protected]>
Signed-off-by: Jeanette Tan <[email protected]>
Signed-off-by: Jeanette Tan <[email protected]>
… if they are not actually histograms based on metadata

Signed-off-by: Jeanette Tan <[email protected]>
zenador added 2 commits July 3, 2024 17:56
Signed-off-by: Jeanette Tan <[email protected]>
Signed-off-by: Jeanette Tan <[email protected]>
@krajorama

Copy link
Copy Markdown
Member

Reviving in #14978 , I've cherry picked the commits from here to keep credit and history.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants