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

Remote write relabelling #2033

Closed
brian-brazil opened this Issue Sep 26, 2016 · 10 comments

Comments

Projects
None yet
2 participants
@brian-brazil
Copy link
Member

brian-brazil commented Sep 26, 2016

We should support relabelling on the remote write path. This goes after external labels.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Sep 26, 2016

@brian-brazil Could you add the rationale for why this goes after external labels, especially since it's the other way around with alerts? Naively I would have thought that one wouldn't want to let the user shoot down the external labels, but who knows...

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Sep 26, 2016

The external labels logic is just a default, it needs to be overrideable (especially for alerts). If alert relabelling is the wrong way, around that's a bug.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Sep 26, 2016

@brian-brazil Ok, then maybe we should change the alert relabeling order before documenting it - can we get around calling it a breaking change then? :)

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Sep 26, 2016

Of course, technically you can achieve the same either way by just not using external labels for any labels that you may want to override (and just use relabeling to set them everywhere). It's just not as convenient. But it gives you the guarantee that anything outgoing from a given Prometheus server will always have the configured external labels.

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Sep 26, 2016

If external labels is 2nd, you can't set an external label to empty. External labels are also defaults, not overrides - if you want to make them overrides use relabelling.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Sep 26, 2016

Don't care much either way - question is whether we consider it breaking to "fix" the way it's done in alerting currently.

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Sep 26, 2016

The alert relabelling feature as implemented doesn't meet the spec of the issue requesting it, so that's a bug.

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Sep 26, 2016

Phew 😅

For reference: #1744

@brian-brazil

This comment has been minimized.

Copy link
Member Author

brian-brazil commented Sep 26, 2016

Also dupe of #1955

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.