Beginner Question - Data Aggregation

Hi - I’d like to see if the follow is possible in telegraf…

Imagine I have two measurements (in reality I have many more).
Measurement 1 = Disk Space on Server A
Measurement 2 = Disk Space on Server B

I’d like to write a 3rd Measurement which is Measurement 1 + Measurement 2

So if new data arrives for Measurement 1, I would need to take the latest value for Measurement 2 and then add them together to generate a value for Measurement 3

Is this something that telegraf can handle?

Sums like this are best done by whatever query, graphing, or reporting tool you are using.

In telegraf, you can use the starlark processor to do arbitrary calculations. The issue is how to store those values. You can use the state global to store some values and then calculate based off of it. See this example: telegraf/plugins/processors/starlark/testdata/compare_metrics.star at master · influxdata/telegraf · GitHub

Actually there would not be the need to calculate and store this data.
Looking in the Dashboards visualisations, you can use “Transform Data” to calculate such values on the fly.

Apologies, I should have put that in the original note above. There IS a requirement to store this data as it will be used in downstream processes.