
Added with dd6582e9ccb2b5fcb31e3833166df3af5aec9eff, we have found that setting a bool here means the query variable no longer refreshes at all. Thus it's dangerous to accept it, force it to be an int. For reference, the values seem to be 0 = never refresh 1 = on load 2 = on timeseries change Change-Id: Ia96f0166a80ece0b307acdca20eeca045a2e4a75
72 lines
2.5 KiB
JSON
72 lines
2.5 KiB
JSON
{
|
|
"dashboard": {
|
|
"new-dashboard": {
|
|
"rows": [
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{
|
|
"bars": false,
|
|
"datasource": "graphite",
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"legend": {
|
|
"alignAsTable": true,
|
|
"avg": true,
|
|
"current": true,
|
|
"max": true,
|
|
"min": true,
|
|
"rightSide": true,
|
|
"show": true,
|
|
"total": false,
|
|
"values": true
|
|
},
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"minSpan": 4,
|
|
"percentage": false,
|
|
"pointradius": 5,
|
|
"points": false,
|
|
"repeat": "$hostname",
|
|
"span": 12,
|
|
"stack": false,
|
|
"steppedLine": false,
|
|
"targets": [
|
|
{
|
|
"target": "$hostname.Cpu.cpu_prct_used"
|
|
}
|
|
],
|
|
"title": "no title (click here)",
|
|
"type": "graph",
|
|
"x-axis": true,
|
|
"y-axis": true
|
|
}
|
|
],
|
|
"showTitle": false,
|
|
"title": "New row"
|
|
}
|
|
],
|
|
"templating": {
|
|
"enabled": true,
|
|
"list": [
|
|
{
|
|
"datasource": "graphite",
|
|
"hide": 0,
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "hostname",
|
|
"query": "node*",
|
|
"refresh": 1,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"timezone": "utc",
|
|
"title": "New dashboard"
|
|
}
|
|
}
|
|
}
|