
A cool feature grafana has is the ability to template dashboards with variables. This code now provides that ability to the user. Change-Id: Ib2f565e3d39523105b2c07d29d5257494a8bae67 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
53 lines
1.7 KiB
JSON
53 lines
1.7 KiB
JSON
{
|
|
"dashboard": {
|
|
"new-dashboard": {
|
|
"rows": [
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{
|
|
"editable": true,
|
|
"error": false,
|
|
"limit": 10,
|
|
"mode": "starred",
|
|
"query": "",
|
|
"span": 12,
|
|
"tag": "",
|
|
"title": "Starred Dashboards",
|
|
"type": "dashlist"
|
|
}
|
|
],
|
|
"showTitle": false,
|
|
"title": "foo"
|
|
},
|
|
{
|
|
"collapse": false,
|
|
"editable": true,
|
|
"height": "250px",
|
|
"panels": [
|
|
{
|
|
"content": "Some example text is required.",
|
|
"editable": true,
|
|
"error": false,
|
|
"mode": "markdown",
|
|
"span": 12,
|
|
"title": "no title (click here)",
|
|
"type": "text"
|
|
}
|
|
],
|
|
"showTitle": false,
|
|
"title": "bar"
|
|
}
|
|
],
|
|
"templating": {
|
|
"enabled": false,
|
|
"list": []
|
|
},
|
|
"timezone": "utc",
|
|
"title": "New dashboard"
|
|
}
|
|
}
|
|
}
|