Version: Grafana v10.4.2
I have a dataset from an Elastic index that I have condensed down to timestamp, host, and status columns using “Organize fields by name”. I wish to use this data to generate a status history for each of the hosts. Timestamps are not unique because for each timestamp sample there are 500+ hosts and a status for each host. The hope is to be able to expand on this at a later time, adding more “status” information in the future or just generating a similar but expanded plot.
Incoming data looks like this (in Table View):
@timestamp | hostname | status |
---|---|---|
2024-09-21 12:00:03 | host12 | up |
2024-09-21 12:00:03 | host11 | down |
2024-09-21 11:45:03 | host12 | up |
2024-09-21 11:45:03 | host11 | up |
I would like the data to look like this to match the requirements of the Status History visualization:
@timestamp | host12 | host11 |
---|---|---|
2024-09-21 12:00:03 | up | down |
2024-09-21 11:45:03 | up | up |
I’ve tried just about every transform possible but haven’t come up with the correct incantations and pinches of salt over the shoulder because “Grouping to matrix” casts the @timestamp value to str and gives me nothing usable. And if there is a better way to do this, I am more than willing to give it a go.
Thank you for your input!
nick