Skip to content

Add support of the time module in Starlark Processor #9000

@essobedo

Description

@essobedo

Feature Request

The upstream project starlark-go has added a new module called time to support dates and durations, thus the goal of this feature request is to add the support of this new module in the Starlark Processor.

Desired behavior:

  • May want to consider helpers to parse from Telegraf nanosecond int64 to time and back if it's not obvious
  • May want to have examples of string parsing and date string formatting
  • a demo plugin where we discard metrics older than 2 weeks might be a good demo of its use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/starlarkfeature requestRequests for new plugin and for new features to existing plugins

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions