Thanks for the help! I did manage to do it using your example with starlark processor! 😁 I had to slightly modify my approach and store the variables "Value" and "PLCTimeStamp" in a DataLayer array, rather than in separate nodes, to retrieve them in the same metric instance: [[processors.starlark]]
source = '''
def apply(metric):
metric.time = int(metric.fields["PLCTimestamp"])
return metric
''' Additionally, I experimented with using the Converter processor. I will leave the code here since it might be usefull to another person: [[processors.converter]]
[processors.converter.fields]
timestamp = ["PLCTimestamp"]
timestamp_format = "unix_ms"
... View more