Keep numbers of virtual machines to store in a Time series

I have bucket that holds numbers of VMs across several datacenters. I want to log how many VMs I have in a Time series dashboard.

This is my flux query:

How can I store the numbers of VMs once an hour and log the time?

Hello @Peter_C,
You can create a task to write this data to a new bucket.
Check out these resources:

The easiest way to create a task is through the UI.

I hope that helps!