From 243488c266f1b42c9dc4711e87d6539d96b75eb5 Mon Sep 17 00:00:00 2001 From: Samantha Wang <32681364+sjwang90@users.noreply.github.com> Date: Tue, 20 Apr 2021 14:26:15 -0700 Subject: [PATCH] add starlark current timestamp example --- plugins/processors/starlark/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/processors/starlark/README.md b/plugins/processors/starlark/README.md index 6372aedcea3b9..c573521bd2f04 100644 --- a/plugins/processors/starlark/README.md +++ b/plugins/processors/starlark/README.md @@ -232,6 +232,7 @@ def apply(metric): - [time duration](/plugins/processors/starlark/testdata/time_duration.star) - Parse a duration and convert it into a total amount of seconds. - [time timestamp](/plugins/processors/starlark/testdata/time_timestamp.star) - Filter metrics based on the timestamp in seconds. - [time timestamp nanoseconds](/plugins/processors/starlark/testdata/time_timestamp_nanos.star) - Filter metrics based on the timestamp with nanoseconds. +- [time timestamp current](/plugins/processors/starlark/testdata/time_set_timestamp.star) - Setting the metric timestamp to the current/local time. - [value filter](/plugins/processors/starlark/testdata/value_filter.star) - Remove a metric based on a field value. - [logging](/plugins/processors/starlark/testdata/logging.star) - Log messages with the logger of Telegraf - [multiple metrics](/plugins/processors/starlark/testdata/multiple_metrics.star) - Return multiple metrics by using [a list](https://docs.bazel.build/versions/master/skylark/lib/list.html) of metrics.