I build dashboards for monitoring of StorageGRID device. I use API for that. I got data which I care of and I would like to present it on PIE chart. I want to present FreeSpace and UsedSpace but how I used all ideas how to manage that.
This is my code:
| json "type" as StorageSpace
| json "data.result.value" as Bytes
| Bytes / 1000 / 1000 / 1000 / 1000 as TeraBytes
| format("%.0f TB",TeraBytes) as TeraBytes
| withtime TeraBytes
| most_recent(TeraBytes_withtime) as TeraBytes by StorageSpace
//| count by StorageSpace - this was for testing
With such code I get proper values in table but no graphs are available. When I use count by I can build a graph but as you know with useless value.
What I need to use to present this data on a chart?
Thank you in advance.
Please sign in to leave a comment.