TestData: Add dashboards to testdata (#16855)

This commit is contained in:
Ryan McKinley
2019-05-02 21:57:30 -07:00
committed by Torkel Ödegaard
parent 0d02ceb452
commit 86729f37c8
2 changed files with 123 additions and 1 deletions

View File

@@ -0,0 +1,114 @@
{
"__inputs": [
{
"name": "DS_TESTDATA_DB",
"label": "TestData DB",
"description": "",
"type": "datasource",
"pluginId": "testdata",
"pluginName": "TestData DB"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.2.0-pre"
},
{
"type": "panel",
"id": "graph2",
"name": "React Graph",
"version": ""
},
{
"type": "datasource",
"id": "testdata",
"name": "TestData DB",
"version": "1.0.0"
}
],
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"datasource": "${DS_TESTDATA_DB}",
"description": "",
"gridPos": {
"h": 6,
"w": 24,
"x": 0,
"y": 0
},
"id": 2,
"links": [],
"options": {
"graph": {
"showBars": false,
"showLines": true,
"showPoints": false
},
"legend": {
"asTable": true,
"decimals": 2,
"isVisible": true,
"placement": "right",
"stats": ["last"]
},
"series": {}
},
"targets": [
{
"refId": "A",
"scenarioId": "streaming_client",
"stream": {
"noise": 10,
"speed": 100,
"spread": 20,
"type": "signal"
},
"stringInput": ""
}
],
"timeFrom": null,
"timeShift": null,
"title": "Simple dummy streaming example",
"type": "graph2"
}
],
"schemaVersion": 18,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "now-1m",
"to": "now"
},
"timepicker": {
"refresh_intervals": ["5s", "10s", "30s", "1m", "5m", "15m", "30m", "1h", "2h", "1d"],
"time_options": ["5m", "15m", "1h", "6h", "12h", "24h", "2d", "7d", "30d"]
},
"timezone": "",
"title": "Simple Streaming Example",
"uid": "TXSTREZ",
"version": 2
}

View File

@@ -20,5 +20,13 @@
"small": "../../../../img/grafana_icon.svg",
"large": "../../../../img/grafana_icon.svg"
}
}
},
"includes": [
{
"type": "dashboard",
"name": "Streaming Example",
"path": "dashboards/streaming.json"
}
]
}