-
Hi, I am new to vector and VRL. I have a metric that I am trying to sent to GCP cloud monitoring sink. There is a requirement from the consumer service to accept metric timestamp in unix epoch time format of nanoseconds. Here is a json of the metric that I have:
Expectation is to get a new key value pair in the json blob inside tags as "new_time": "1689765925" |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Can you share the full config? That looks roughly like what I would have suggested. |
Beta Was this translation helpful? Give feedback.
Try adding
to_string()
around theto_unix_timestamp!(.timestamp, unit: "nanoseconds")
. I'm thinking maybe tag values need to be strings.