Add a general purpose processor based on the Starlark language #7194
Labels
feature request
Requests for new plugin and for new features to existing plugins
Milestone
Feature Request
The Starlark language is a dialect of python designed to be embedded into a larger application. The Go implementation that allows embedding the language using pure Go code and with few dependencies. It is used primarily in the Bazel build system and is well maintained.
Proposal:
Create a processor plugin that allows applying a starlark function to Telegraf metrics. Expose and document an interface for reading and modifying the metric name, tags, fields, time.
Desired behavior:
Example configuration, this script does not modify the metric but prints the values. Calling print in the processor will be connected to the Telegraf log:
Use case:
This would be a general purpose plugin which will be helpful with specialized processing and extending Telegraf without requiring new plugins. I'll be adding some additional use cases as they come up and are collected from the backlog:
The text was updated successfully, but these errors were encountered: