
This change adds support for datasource option to: * graph panel * singlestat panel * templating This enables the user to use other datasource than the default datasource for graph/singlestat panels and templating. It is useful when more than one datasource are available in Grafana. Change-Id: I2e81a2dc4658c530bf82c4b349e2991dad348b01
58 lines
1.9 KiB
JSON
58 lines
1.9 KiB
JSON
{
|
|
"dashboard": {
|
|
"new-dashboard": {
|
|
"rows": [
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{
|
|
"bars": false,
|
|
"datasource": "graphite",
|
|
"editable": true,
|
|
"error": false,
|
|
"fill": 1,
|
|
"lines": true,
|
|
"linewidth": 2,
|
|
"percentage": false,
|
|
"pointradius": 5,
|
|
"points": false,
|
|
"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",
|
|
"includeAll": false,
|
|
"multi": false,
|
|
"name": "hostname",
|
|
"query": "node*",
|
|
"refresh": true,
|
|
"type": "query"
|
|
}
|
|
]
|
|
},
|
|
"timezone": "utc",
|
|
"title": "New dashboard"
|
|
}
|
|
}
|
|
}
|