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

Why do we need 2 packages relabel packages? /pkg/relabel, /relabel #3647

Closed
krasi-georgiev opened this Issue Jan 2, 2018 · 4 comments

Comments

Projects
None yet
4 participants
@krasi-georgiev
Copy link
Member

krasi-georgiev commented Jan 2, 2018

Wondering what is the reason to have 2 almost identical relabel packages and if we can combine it into one.
/pkg/relabel
/relabel

or rename to avoid the confusion if they serve different purpose.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Jan 2, 2018

Only the pkg one is meant to be there in 2.0

@krasi-georgiev

This comment has been minimized.

Copy link
Member Author

krasi-georgiev commented Jan 2, 2018

will wait for some conflicting PRs to be merged and will cleanup

bwplotka added a commit to bwplotka/prometheus that referenced this issue Dec 4, 2018

Removed config dependency from `relabel` package.
Adapted top dir relabel to use pkg relabel structs.

Removal of this in a separate tracked here: prometheus#3647

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>

brian-brazil added a commit that referenced this issue Dec 18, 2018

Moved configuration into `relabel` package. (#4955)
Adapted top dir relabel to use pkg relabel structs.

Removal of this in a separate tracked here: #3647

Signed-off-by: Bartek Plotka <bwplotka@gmail.com>
@vn-ki

This comment has been minimized.

Copy link
Contributor

vn-ki commented Dec 31, 2018

Is this issue done?

@codesome

This comment has been minimized.

Copy link
Member

codesome commented Jan 1, 2019

No, it is being done in this PR #4083

tomwilkie added a commit to grafana/prometheus that referenced this issue Mar 11, 2019

Remove old relabel pkg (part of prometheus#3647).
Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

tomwilkie added a commit to grafana/prometheus that referenced this issue Mar 12, 2019

Use pkg/relabelling in remote write.
- Unmarshall external_labels config as labels.Labels, add tests.
- Convert some more uses of model.LabelSet to labels.Labels.
- Remove old relabel pkg (fixes prometheus#3647).
- Validate external label names.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

tomwilkie added a commit to grafana/prometheus that referenced this issue Mar 13, 2019

Use pkg/relabelling in remote write.
- Unmarshall external_labels config as labels.Labels, add tests.
- Convert some more uses of model.LabelSet to labels.Labels.
- Remove old relabel pkg (fixes prometheus#3647).
- Validate external label names.

Signed-off-by: Tom Wilkie <tom.wilkie@gmail.com>

@tomwilkie tomwilkie closed this in c7b3535 Mar 18, 2019

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