Skip to content

[receiver/prometheus] Use appenderv2#45597

Closed
ArthurSens wants to merge 8 commits intoopen-telemetry:mainfrom
ArthurSens:prom-appenderv2
Closed

[receiver/prometheus] Use appenderv2#45597
ArthurSens wants to merge 8 commits intoopen-telemetry:mainfrom
ArthurSens:prom-appenderv2

Conversation

@ArthurSens
Copy link
Copy Markdown
Member

Description

This is a heavily WIP PR, the goal is mostly to provide feedback to prometheus/prometheus#17872

Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
if err != nil {
return err
}
scrapeManager, err = scrape.NewManager(opts, logger, nil, nil, storeV2, r.registerer)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI: For this to work functionally the same you need to change your initial scrape opts a bit:

  • Important: opts.AppendMetadata = true because with V2 you obtain meta from Append, not from context/metadata store hack we did for collector.
  • PassMetadataInContext = false to save some CPU/allocs and stop using this hack, so we can remove it eventually.

Signed-off-by: Arthur Silva Sens <[email protected]>
@dashpole
Copy link
Copy Markdown
Contributor

From the WG today: We love the idea of simplifying all of this, and the prototype is super-helpful. I wonder if it is possible when we do the migration in small pieces. Is it possible to implement the new appender interface using the old functions, and then refactor in small steps?

@github-actions
Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 14, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 1, 2026

Closed as inactive. Feel free to reopen if this PR is still being worked on.

@github-actions github-actions bot closed this Mar 1, 2026
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