Skip to content

Commit e02ac02

Browse files
authored
Update Streaming panel (#6)
1 parent aa9d571 commit e02ac02

File tree

2 files changed

+79
-87
lines changed

2 files changed

+79
-87
lines changed

dashboards/pop-up-streaming.json

Lines changed: 77 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"__inputs": [],
33
"__requires": [
4+
{
5+
"type": "panel",
6+
"id": "gauge",
7+
"name": "Gauge",
8+
"version": ""
9+
},
410
{
511
"type": "grafana",
612
"id": "grafana",
713
"name": "Grafana",
814
"version": "7.5.1"
915
},
10-
{
11-
"type": "panel",
12-
"id": "graph",
13-
"name": "Graph",
14-
"version": ""
15-
},
1616
{
1717
"type": "datasource",
1818
"id": "redis-datasource",
@@ -49,14 +49,19 @@
4949
"gnetId": null,
5050
"graphTooltip": 0,
5151
"id": null,
52-
"iteration": 1617298330015,
52+
"iteration": 1617386726701,
5353
"links": [],
5454
"panels": [
5555
{
5656
"datasource": "$redis",
5757
"fieldConfig": {
5858
"defaults": {
59+
"color": {
60+
"mode": "thresholds"
61+
},
5962
"mappings": [],
63+
"max": 10000,
64+
"min": 0,
6065
"noValue": "0",
6166
"thresholds": {
6267
"mode": "absolute",
@@ -86,17 +91,15 @@
8691
},
8792
"id": 4,
8893
"options": {
89-
"colorMode": "background",
90-
"graphMode": "area",
91-
"justifyMode": "center",
9294
"orientation": "auto",
9395
"reduceOptions": {
9496
"calcs": ["mean"],
9597
"fields": "",
9698
"values": false
9799
},
98-
"text": {},
99-
"textMode": "auto"
100+
"showThresholdLabels": false,
101+
"showThresholdMarkers": true,
102+
"text": {}
100103
},
101104
"pluginVersion": "7.5.1",
102105
"targets": [
@@ -105,13 +108,15 @@
105108
"keyName": "product",
106109
"query": "",
107110
"refId": "A",
111+
"streaming": true,
112+
"streamingDataType": "DataFrame",
108113
"type": "command"
109114
}
110115
],
111116
"timeFrom": null,
112117
"timeShift": null,
113118
"title": "Product Available",
114-
"type": "stat"
119+
"type": "gauge"
115120
},
116121
{
117122
"datasource": "$redis",
@@ -172,7 +177,7 @@
172177
"options": {
173178
"legend": {
174179
"calcs": [],
175-
"displayMode": "list",
180+
"displayMode": "hidden",
176181
"placement": "bottom"
177182
},
178183
"tooltipOptions": {
@@ -251,7 +256,7 @@
251256
"options": {
252257
"legend": {
253258
"calcs": [],
254-
"displayMode": "list",
259+
"displayMode": "hidden",
255260
"placement": "bottom"
256261
},
257262
"tooltipOptions": {
@@ -283,6 +288,7 @@
283288
"fieldConfig": {
284289
"defaults": {
285290
"mappings": [],
291+
"min": 0,
286292
"thresholds": {
287293
"mode": "absolute",
288294
"steps": [
@@ -322,6 +328,8 @@
322328
"keyName": "queue:complete",
323329
"query": "",
324330
"refId": "A",
331+
"streaming": true,
332+
"streamingDataType": "TimeSeries",
325333
"type": "command"
326334
}
327335
],
@@ -401,11 +409,11 @@
401409
"options": {
402410
"legend": {
403411
"calcs": [],
404-
"displayMode": "list",
412+
"displayMode": "hidden",
405413
"placement": "bottom"
406414
},
407415
"tooltipOptions": {
408-
"mode": "single"
416+
"mode": "multi"
409417
}
410418
},
411419
"pluginVersion": "7.5.1",
@@ -426,51 +434,72 @@
426434
"type": "timeseries"
427435
},
428436
{
429-
"aliasColors": {},
430-
"bars": false,
431-
"dashLength": 10,
432-
"dashes": false,
433437
"datasource": "$redis",
434438
"fieldConfig": {
435439
"defaults": {
436-
"links": []
440+
"color": {
441+
"mode": "palette-classic"
442+
},
443+
"custom": {
444+
"axisLabel": "",
445+
"axisPlacement": "auto",
446+
"barAlignment": 0,
447+
"drawStyle": "line",
448+
"fillOpacity": 10,
449+
"gradientMode": "none",
450+
"hideFrom": {
451+
"graph": false,
452+
"legend": false,
453+
"tooltip": false
454+
},
455+
"lineInterpolation": "linear",
456+
"lineWidth": 1,
457+
"pointSize": 5,
458+
"scaleDistribution": {
459+
"type": "linear"
460+
},
461+
"showPoints": "never",
462+
"spanNulls": true
463+
},
464+
"decimals": 0,
465+
"mappings": [],
466+
"min": 0,
467+
"thresholds": {
468+
"mode": "absolute",
469+
"steps": [
470+
{
471+
"color": "green",
472+
"value": null
473+
},
474+
{
475+
"color": "red",
476+
"value": 80
477+
}
478+
]
479+
},
480+
"unit": "short"
437481
},
438482
"overrides": []
439483
},
440-
"fill": 1,
441-
"fillGradient": 0,
442484
"gridPos": {
443485
"h": 8,
444486
"w": 12,
445487
"x": 12,
446488
"y": 9
447489
},
448-
"hiddenSeries": false,
449490
"id": 19,
450-
"legend": {
451-
"avg": false,
452-
"current": false,
453-
"max": false,
454-
"min": false,
455-
"show": true,
456-
"total": false,
457-
"values": false
458-
},
459-
"lines": true,
460-
"linewidth": 1,
461-
"nullPointMode": "null",
462491
"options": {
463-
"alertThreshold": true
492+
"graph": {},
493+
"legend": {
494+
"calcs": [],
495+
"displayMode": "hidden",
496+
"placement": "bottom"
497+
},
498+
"tooltipOptions": {
499+
"mode": "single"
500+
}
464501
},
465-
"percentage": false,
466502
"pluginVersion": "7.5.1",
467-
"pointradius": 2,
468-
"points": false,
469-
"renderer": "flot",
470-
"seriesOverrides": [],
471-
"spaceLength": 10,
472-
"stack": false,
473-
"steppedLine": false,
474503
"targets": [
475504
{
476505
"command": "ts.get",
@@ -482,47 +511,10 @@
482511
"type": "timeSeries"
483512
}
484513
],
485-
"thresholds": [],
486514
"timeFrom": null,
487-
"timeRegions": [],
488515
"timeShift": null,
489516
"title": "Completed Flow",
490-
"tooltip": {
491-
"shared": true,
492-
"sort": 0,
493-
"value_type": "individual"
494-
},
495-
"type": "graph",
496-
"xaxis": {
497-
"buckets": null,
498-
"mode": "time",
499-
"name": null,
500-
"show": true,
501-
"values": []
502-
},
503-
"yaxes": [
504-
{
505-
"decimals": 0,
506-
"format": "short",
507-
"label": null,
508-
"logBase": 1,
509-
"max": null,
510-
"min": "0",
511-
"show": true
512-
},
513-
{
514-
"format": "short",
515-
"label": null,
516-
"logBase": 1,
517-
"max": null,
518-
"min": null,
519-
"show": true
520-
}
521-
],
522-
"yaxis": {
523-
"align": false,
524-
"alignLevel": null
525-
}
517+
"type": "timeseries"
526518
}
527519
],
528520
"refresh": "",
@@ -574,5 +566,5 @@
574566
"timezone": "",
575567
"title": "Pop-up (Real-time)",
576568
"uid": "0LC0Sm7Ml",
577-
"version": 14
569+
"version": 4
578570
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)