Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow to replace job label #5882

Conversation

GlowingRuby
Copy link

Description: Fix #5663

Testing: Test_transaction

return &mCache{target}, nil
for _, targets := range s.sm.TargetsAll() {
for _, target := range targets {
if target.Labels().Get(model.JobLabel) == job && target.Labels().Get(model.InstanceLabel) == instance {
Copy link
Contributor

Choose a reason for hiding this comment

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

@GlowingRuby - Thanks for making this PR. I have a couple of questions.

  1. This will help with the relabel_config but might not solve the metric_relabel_config problem, since the metrics being passed have new labels that is not available in the target list.
  2. At a very high scale, this lookup may be expensive.

I am curious to hear your thoughts about this.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 2, 2021

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

@github-actions github-actions bot added the Stale label Nov 2, 2021
@Aneurysm9 Aneurysm9 removed the Stale label Nov 2, 2021
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

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

@github-actions github-actions bot added the Stale label Nov 20, 2021
@github-actions
Copy link
Contributor

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

@github-actions github-actions bot closed this Nov 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants