I’m using Grafana 10.0.3 with Prometheus blackbox exporter, trying to make a state timeline showing the status of several hosts using blackbox exporter ICMP probe. My Grafana query is: up{module="ping"}
.
This works fine on the Grafana explore page. But on the dashboard page it shows each metric twice. All the labels are identical, but the first set has good data and the second set is blank.
The panel JSON is like this:
{
"datasource": {
"type": "prometheus",
"uid": "fcdbb9cf-3c1a-4fe7-ae16-f58d776c91ff"
},
"targets": [
{
"refId": "A",
"expr": "up{module=\"ping\"}",
"range": true,
"instant": true,
"key": "Q-5c4d2413-9a8f-48c6-afd8-7ccefd558d3f-0",
"datasource": {
"type": "prometheus",
"uid": "fcdbb9cf-3c1a-4fe7-ae16-f58d776c91ff"
},
"editorMode": "builder"
}
],
"type": "state-timeline",
"title": "New Panel",
"gridPos": {
"x": 0,
"y": 0,
"w": 20,
"h": 9
},
"options": {
"mergeValues": true,
"showValue": "auto",
"alignValue": "left",
"rowHeight": 0.9,
"legend": {
"showLegend": true,
"displayMode": "list",
"placement": "bottom"
},
"tooltip": {
"mode": "single",
"sort": "none"
}
},
"fieldConfig": {
"defaults": {
"custom": {
"lineWidth": 0,
"fillOpacity": 70,
"spanNulls": false
},
"color": {
"mode": "continuous-GrYlRd"
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
}
]
}
},
"overrides": []
},
"id": 2
}