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

fix: Remove depricated entry_parser from scrapeconfig #2752

Merged
merged 1 commit into from
Oct 14, 2020

Conversation

kavirajk
Copy link
Collaborator

What this PR does / why we need it:

To remove deprecated entry_parser config and replace it with pipeline_stages everywhere.

Which issue(s) this PR fixes:
Fixes #2631 #2577

Special notes for your reviewer:

remove deprecated entry_parser from scrapeconfig. use pipeline_stages instead.

Checklist

  • Documentation added
  • Tests updated

@CLAassistant
Copy link

CLAassistant commented Oct 13, 2020

CLA assistant check
All committers have signed the CLA.

@kavirajk kavirajk marked this pull request as draft October 13, 2020 08:04
@kavirajk kavirajk force-pushed the fix/remove-entry-parser branch 3 times, most recently from c35dfc1 to fb56d92 Compare October 13, 2020 12:15
@kavirajk kavirajk changed the title [wip]: fix: Remove depricated entry_parser from scrapeconfig fix: Remove depricated entry_parser from scrapeconfig Oct 13, 2020
@@ -82,7 +80,11 @@ type PushTargetConfig struct {

// DefaultScrapeConfig is the default Config.
var DefaultScrapeConfig = Config{
EntryParser: api.Docker,
PipelineStages: []interface{}{
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

[q]: unfortunately coz the type of pipeline stages are just []interface{}. Would love to know if there is a better way!

@kavirajk kavirajk marked this pull request as ready for review October 13, 2020 13:34
Copy link
Contributor

@achatterjee-grafana achatterjee-grafana left a comment

Choose a reason for hiding this comment

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

Changes to the comments look OK.

Copy link
Contributor

@cyriltovena cyriltovena left a comment

Choose a reason for hiding this comment

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

LGTM

@cyriltovena cyriltovena merged commit 690a387 into master Oct 14, 2020
@cyriltovena cyriltovena deleted the fix/remove-entry-parser branch October 14, 2020 10:51
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Oct 21, 2020
Signed-off-by: Cyril Tovena <cyril.tovena@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WARNING!!! entry_parser config is deprecated, please change to pipeline_stages
4 participants