Created a SingleStat Panel in a dashboard to repeat the machine names and to show the status of each machine. WMI Exporter is used to gather system info. Only the first instance is shown and the panel is not repeating itself. Please advise if more information is needed.
Thanks
Query Used
avg(wmi_service_state{instance=~"$Machine", name=~“amp.|merc.|zyt.|im.”,state=“running”})
Following is the JSON
{
“datasource”: “Prometheus”,
“fieldConfig”: {
“defaults”: {
“custom”: {},
“thresholds”: {
“mode”: “absolute”,
“steps”: [
{
“color”: “green”,
“value”: null
},
{
“color”: “red”,
“value”: 80
}
]
},
“mappings”: []
},
“overrides”: []
},
“gridPos”: {
“h”: 3,
“w”: 24,
“x”: 0,
“y”: 25
},
“id”: 104,
“options”: {
“reduceOptions”: {
“values”: false,
“calcs”: [
“mean”
]
},
“orientation”: “auto”,
“colorMode”: “value”,
“graphMode”: “area”,
“justifyMode”: “auto”
},
“pluginVersion”: “7.0.2”,
“repeat”: “Machine”,
“targets”: [
{
“expr”: “avg(wmi_service_state{instance=~”$Machine", name=~“amp.|merc.|zyt.|im.”,state=“running”})",
“format”: “table”,
“interval”: “”,
“legendFormat”: “”,
“refId”: “A”
}
],
“timeFrom”: null,
“timeShift”: null,
“title”: “$Machine”,
“type”: “stat”,
“scopedVars”: {
“Machine”: {
“text”: “gva-p-ict-03”,
“value”: “gva-p-ict-03”,
“selected”: true
}
}
}