Streaming: support streaming in MetricsPanelCtrl (#17034)

* support streaming in angular panels

* keep the same dashboard number
This commit is contained in:
Ryan McKinley
2019-05-14 08:47:41 -07:00
committed by Torkel Ödegaard
parent 68ad93f410
commit 7333f7ca17
2 changed files with 126 additions and 18 deletions

View File

@@ -14,7 +14,13 @@
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "6.2.0-pre"
"version": "6.3.0-pre"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "panel",
@@ -48,6 +54,97 @@
"id": null,
"links": [],
"panels": [
{
"aliasColors": {},
"bars": false,
"dashLength": 10,
"dashes": false,
"fill": 1,
"gridPos": {
"h": 7,
"w": 24,
"x": 0,
"y": 0
},
"id": 4,
"legend": {
"alignAsTable": true,
"avg": false,
"current": true,
"max": false,
"min": false,
"rightSide": true,
"show": true,
"total": false,
"values": true
},
"lines": true,
"linewidth": 1,
"links": [],
"nullPointMode": "null",
"percentage": false,
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"refId": "A",
"scenarioId": "streaming_client",
"stream": {
"noise": 2.2,
"speed": 100,
"spread": 3.5,
"type": "signal"
},
"stringInput": ""
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Angular Graph",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"decimals": 2,
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
},
{
"datasource": "${DS_TESTDATA_DB}",
"description": "",
@@ -55,7 +152,7 @@
"h": 6,
"w": 24,
"x": 0,
"y": 0
"y": 7
},
"id": 2,
"links": [],
@@ -110,5 +207,5 @@
"timezone": "",
"title": "Simple Streaming Example",
"uid": "TXSTREZ",
"version": 2
"version": 3
}