Skip to content

Conversation

@ArthurSens
Copy link
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 <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
Signed-off-by: Arthur Silva Sens <arthursens2005@gmail.com>
if err != nil {
return err
}
scrapeManager, err = scrape.NewManager(opts, logger, nil, nil, storeV2, r.registerer)
Copy link
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 <arthursens2005@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants