Below is a sample event ingested over HEC and a query. What I am interested in is creating a dashboard from miner.gpus{}. I want to dashboard miner.gpus{}.eth, miner.gpus{}.temp, and miner.gpus{}.fan. The expected miner.gpus{} count is always 8.
Is there an easy way to create a gauge for every index in the array? Or do I have to manually call out the index using mvindex?
http://imgur.com/a/TvLxb
index="rigs" rig="$miner$"
| spath output=values miner.gpus{}.eth
| eval value=mvindex(values,0)
| stats min(value) as minimum, max(value) as maximum, latest(value) as current
| table current, minimum, maximum
{
"rig": "MINER001",
"miner": {
"runningTime": "675",
"id": 0,
"DCR": {
"totalHashrate": "0",
"shares": "0",
"rejectedShares": "0",
"poolSwitches": "0",
"invalidShares": "0"
},
"version": "9.5 - ETH",
"miner": "claymore",
"pools": [
"us1.ethermine.org:14444"
],
"error": null,
"gpus": [
{
"temp": "83",
"dcr": "off",
"fan": "71",
"eth": "29890",
"index": 0
},
{
"temp": "73",
"dcr": "off",
"fan": "57",
"eth": "29934",
"index": 1
},
{
"temp": "69",
"dcr": "off",
"fan": "52",
"eth": "29940",
"index": 2
},
{
"temp": "74",
"dcr": "off",
"fan": "59",
"eth": "29816",
"index": 3
},
{
"temp": "76",
"dcr": "off",
"fan": "61",
"eth": "29813",
"index": 4
},
{
"temp": "77",
"dcr": "off",
"fan": "63",
"eth": "29895",
"index": 5
},
{
"temp": "73",
"dcr": "off",
"fan": "57",
"eth": "30204",
"index": 6
},
{
"temp": "62",
"dcr": "off",
"fan": "31",
"eth": "30103",
"index": 7
}
],
"isRunning": true,
"ETH": {
"totalHashrate": "239598",
"shares": "2383",
"rejectedShares": "0",
"poolSwitches": "0",
"invalidShares": "0"
}
},
"event_type": "heartbeat",
"uptime": 40860.5487383,
"uptimeUnits": "seconds"
}
... View more