telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

chore(processors): Convert processors to `ParserPlugin`s

Open srebhan opened this issue 2 years ago • 1 comments

  • [ ] Updated associated README.md.
  • [x] Wrote appropriate unit tests.
  • [x] Pull request title or commits are in conventional commit format

This PR converts the processors execd and parser to derive their parsers from the config instead of fiddling with data_format directly. To do so, the PR creates the necessary infrastructure in config and the adds the SetParser functions to the two plugins mentioned.

This is in preparation of deprecating the old parser initialization style completely.

srebhan avatar Aug 02 '22 16:08 srebhan