Skip to content

Commit 3526698

Browse files
committed
Fix #34712: add descriptions to dashboards
1 parent cba6fda commit 3526698

9 files changed

Lines changed: 559 additions & 68 deletions

src/main/resources/configs/docker/monitoring/grafana/dashboards/shinyproxy-aggregated-usage.json

Lines changed: 57 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,63 @@
2626
"graphTooltip": 0,
2727
"links": [],
2828
"panels": [
29+
{
30+
"collapsed": false,
31+
"gridPos": {
32+
"h": 1,
33+
"w": 24,
34+
"x": 0,
35+
"y": 0
36+
},
37+
"id": 7,
38+
"panels": [],
39+
"title": "Description",
40+
"type": "row"
41+
},
42+
{
43+
"fieldConfig": {
44+
"defaults": {},
45+
"overrides": []
46+
},
47+
"gridPos": {
48+
"h": 5,
49+
"w": 24,
50+
"x": 0,
51+
"y": 1
52+
},
53+
"id": 5,
54+
"options": {
55+
"code": {
56+
"language": "plaintext",
57+
"showLineNumbers": false,
58+
"showMiniMap": false
59+
},
60+
"content": "This dashboard shows the aggregated usage of ShinyProxy.\n\n**Tips:**\n\n- use the filters on the top of page\n- change the time range in the top-right corner of the page\n- disable the automatic refresh (in the top-right corner) if the dashboard takes a long time to load",
61+
"mode": "markdown"
62+
},
63+
"pluginVersion": "11.6.1",
64+
"title": "",
65+
"type": "text"
66+
},
67+
{
68+
"collapsed": false,
69+
"gridPos": {
70+
"h": 1,
71+
"w": 24,
72+
"x": 0,
73+
"y": 6
74+
},
75+
"id": 6,
76+
"panels": [],
77+
"title": "",
78+
"type": "row"
79+
},
2980
{
3081
"datasource": {
3182
"type": "prometheus",
3283
"uid": "${datasource}"
3384
},
85+
"description": "The number of times an app has been started. Does not include currently running apps (only apps that haven been stopped).",
3486
"fieldConfig": {
3587
"defaults": {
3688
"color": {
@@ -65,7 +117,7 @@
65117
"h": 9,
66118
"w": 24,
67119
"x": 0,
68-
"y": 0
120+
"y": 7
69121
},
70122
"id": 2,
71123
"options": {
@@ -152,6 +204,7 @@
152204
"type": "prometheus",
153205
"uid": "${datasource}"
154206
},
207+
"description": "The total time an app has been running. Combines all instances of an app of all users. Does not include currently running apps (only apps that haven been stopped).",
155208
"fieldConfig": {
156209
"defaults": {
157210
"color": {
@@ -187,7 +240,7 @@
187240
"h": 9,
188241
"w": 24,
189242
"x": 0,
190-
"y": 9
243+
"y": 16
191244
},
192245
"id": 3,
193246
"options": {
@@ -272,6 +325,7 @@
272325
"type": "prometheus",
273326
"uid": "${datasource}"
274327
},
328+
"description": "The average time an app instance runs. This is the average of all instances of an app of all users. Does not include currently running apps (only apps that haven been stopped).",
275329
"fieldConfig": {
276330
"defaults": {
277331
"color": {
@@ -307,7 +361,7 @@
307361
"h": 9,
308362
"w": 24,
309363
"x": 0,
310-
"y": 18
364+
"y": 25
311365
},
312366
"id": 4,
313367
"options": {

src/main/resources/configs/docker/monitoring/grafana/dashboards/shinyproxy-app-logs.json

Lines changed: 67 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,63 @@
2727
"graphTooltip": 0,
2828
"links": [],
2929
"panels": [
30+
{
31+
"collapsed": false,
32+
"gridPos": {
33+
"h": 1,
34+
"w": 24,
35+
"x": 0,
36+
"y": 0
37+
},
38+
"id": 11,
39+
"panels": [],
40+
"title": "Description",
41+
"type": "row"
42+
},
43+
{
44+
"fieldConfig": {
45+
"defaults": {},
46+
"overrides": []
47+
},
48+
"gridPos": {
49+
"h": 7,
50+
"w": 24,
51+
"x": 0,
52+
"y": 1
53+
},
54+
"id": 12,
55+
"options": {
56+
"code": {
57+
"language": "plaintext",
58+
"showLineNumbers": false,
59+
"showMiniMap": false
60+
},
61+
"content": "This dashboard shows the logs of apps.\n\n**Tips:**\n\n- use the filters on the top of page\n- the app metadata is only shown when a single id is selected\n- change the time range in the top-right corner of the page\n- disable the automatic refresh (in the top-right corner) if the dashboard takes a long time to load\n- when the time range exceeds 7 days, the dashboard might fail to load the data\n- use the calendar button (in the time range selector) to load data on specific dates or times\n- click on a log line to see the app id and other metadata",
62+
"mode": "markdown"
63+
},
64+
"pluginVersion": "11.6.1",
65+
"title": "",
66+
"type": "text"
67+
},
68+
{
69+
"collapsed": false,
70+
"gridPos": {
71+
"h": 1,
72+
"w": 24,
73+
"x": 0,
74+
"y": 8
75+
},
76+
"id": 10,
77+
"panels": [],
78+
"title": "",
79+
"type": "row"
80+
},
3081
{
3182
"datasource": {
3283
"type": "prometheus",
3384
"uid": "${prometheus}"
3485
},
35-
"description": "",
86+
"description": "The time the user launched the application. Only shown if a single id is selected. ",
3687
"fieldConfig": {
3788
"defaults": {
3889
"color": {
@@ -60,7 +111,7 @@
60111
"h": 2,
61112
"w": 4,
62113
"x": 0,
63-
"y": 0
114+
"y": 9
64115
},
65116
"id": 4,
66117
"options": {
@@ -116,7 +167,7 @@
116167
"type": "prometheus",
117168
"uid": "${prometheus}"
118169
},
119-
"description": "",
170+
"description": "The name of the user that launched the app. Only shown if a single id is selected. ",
120171
"fieldConfig": {
121172
"defaults": {
122173
"color": {
@@ -144,7 +195,7 @@
144195
"h": 2,
145196
"w": 4,
146197
"x": 4,
147-
"y": 0
198+
"y": 9
148199
},
149200
"id": 6,
150201
"options": {
@@ -206,7 +257,7 @@
206257
"type": "prometheus",
207258
"uid": "${prometheus}"
208259
},
209-
"description": "",
260+
"description": "The id of the application spec. Only shown if a single id is selected. ",
210261
"fieldConfig": {
211262
"defaults": {
212263
"color": {
@@ -234,7 +285,7 @@
234285
"h": 2,
235286
"w": 4,
236287
"x": 8,
237-
"y": 0
288+
"y": 9
238289
},
239290
"id": 7,
240291
"options": {
@@ -296,7 +347,7 @@
296347
"type": "prometheus",
297348
"uid": "${prometheus}"
298349
},
299-
"description": "",
350+
"description": "The name of the instance. By default this is `_`. When a user can start multiple instances of the same app, this is the name chosen by the user. Only shown if a single id is selected. ",
300351
"fieldConfig": {
301352
"defaults": {
302353
"color": {
@@ -324,7 +375,7 @@
324375
"h": 2,
325376
"w": 4,
326377
"x": 12,
327-
"y": 0
378+
"y": 9
328379
},
329380
"id": 8,
330381
"options": {
@@ -386,7 +437,7 @@
386437
"type": "prometheus",
387438
"uid": "${prometheus}"
388439
},
389-
"description": "",
440+
"description": "The status of the app. It can take up to two minutes for the status to change. Only shown if a single id is selected. ",
390441
"fieldConfig": {
391442
"defaults": {
392443
"color": {
@@ -445,7 +496,7 @@
445496
"h": 2,
446497
"w": 4,
447498
"x": 16,
448-
"y": 0
499+
"y": 9
449500
},
450501
"id": 5,
451502
"options": {
@@ -489,11 +540,16 @@
489540
"type": "loki",
490541
"uid": "${datasource}"
491542
},
543+
"description": "The logs related to the application. Log lines containing `[ShinyProxy]` are generated by ShinyProxy. Log lines containing `[App]` are generated by the app container.",
544+
"fieldConfig": {
545+
"defaults": {},
546+
"overrides": []
547+
},
492548
"gridPos": {
493549
"h": 27,
494550
"w": 24,
495551
"x": 0,
496-
"y": 2
552+
"y": 11
497553
},
498554
"id": 2,
499555
"options": {

0 commit comments

Comments
 (0)