Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRemote write relabelling #2033
Comments
brian-brazil
added
the
kind/enhancement
label
Sep 26, 2016
This comment has been minimized.
This comment has been minimized.
|
@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... |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
@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? :) |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
Don't care much either way - question is whether we consider it breaking to "fix" the way it's done in alerting currently. |
This comment has been minimized.
This comment has been minimized.
|
The alert relabelling feature as implemented doesn't meet the spec of the issue requesting it, so that's a bug. |
This comment has been minimized.
This comment has been minimized.
|
Phew For reference: #1744 |
This comment has been minimized.
This comment has been minimized.
|
Also dupe of #1955 |
brian-brazil
closed this
Sep 26, 2016
brancz
referenced this issue
Sep 27, 2016
Merged
notifier: attach external labels before relabelling #2035
This comment has been minimized.
This comment has been minimized.
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. |
brian-brazil commentedSep 26, 2016
We should support relabelling on the remote write path. This goes after external labels.