@grafana/viz-contract 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (173) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +201 -0
  3. package/README.md +140 -0
  4. package/fixtures/epoch-range/args.json +14 -0
  5. package/fixtures/epoch-range/meta.json +4 -0
  6. package/fixtures/epoch-range/request.json +17 -0
  7. package/fixtures/epoch-range/response.json +114 -0
  8. package/fixtures/epoch-range/result.json +252 -0
  9. package/fixtures/epoch-range/spec.json +141 -0
  10. package/fixtures/epoch-range/state.json +4 -0
  11. package/fixtures/error-all-queries-failed/spec.json +45 -0
  12. package/fixtures/error-all-queries-failed/state.json +8 -0
  13. package/fixtures/error-invalid-spec/spec.json +25 -0
  14. package/fixtures/error-invalid-spec/state.json +8 -0
  15. package/fixtures/error-unsupported-panel-type/spec.json +1372 -0
  16. package/fixtures/error-unsupported-panel-type/state.json +8 -0
  17. package/fixtures/error-unsupported-spec-version/spec.json +1372 -0
  18. package/fixtures/error-unsupported-spec-version/state.json +8 -0
  19. package/fixtures/hostile-label/args.json +14 -0
  20. package/fixtures/hostile-label/meta.json +4 -0
  21. package/fixtures/hostile-label/request.json +17 -0
  22. package/fixtures/hostile-label/response.json +420 -0
  23. package/fixtures/hostile-label/result.json +558 -0
  24. package/fixtures/hostile-label/spec.json +447 -0
  25. package/fixtures/hostile-label/state.json +4 -0
  26. package/fixtures/no-data/args.json +14 -0
  27. package/fixtures/no-data/meta.json +4 -0
  28. package/fixtures/no-data/request.json +17 -0
  29. package/fixtures/no-data/response.json +40 -0
  30. package/fixtures/no-data/result.json +178 -0
  31. package/fixtures/no-data/spec.json +67 -0
  32. package/fixtures/no-data/state.json +4 -0
  33. package/fixtures/partial-error/args.json +20 -0
  34. package/fixtures/partial-error/meta.json +4 -0
  35. package/fixtures/partial-error/request.json +28 -0
  36. package/fixtures/partial-error/response.json +220 -0
  37. package/fixtures/partial-error/result.json +358 -0
  38. package/fixtures/partial-error/spec.json +253 -0
  39. package/fixtures/partial-error/state.json +9 -0
  40. package/fixtures/pick-annotations-only/args.json +10 -0
  41. package/fixtures/pick-annotations-only/meta.json +4 -0
  42. package/fixtures/pick-annotations-only/response.json +41 -0
  43. package/fixtures/pick-annotations-only/result.json +53 -0
  44. package/fixtures/pick-categories/args.json +10 -0
  45. package/fixtures/pick-categories/meta.json +4 -0
  46. package/fixtures/pick-categories/response.json +58 -0
  47. package/fixtures/pick-categories/result.json +116 -0
  48. package/fixtures/pick-empty-result/args.json +10 -0
  49. package/fixtures/pick-empty-result/meta.json +4 -0
  50. package/fixtures/pick-empty-result/response.json +11 -0
  51. package/fixtures/pick-empty-result/result.json +23 -0
  52. package/fixtures/pick-failed-query-with-frames/args.json +10 -0
  53. package/fixtures/pick-failed-query-with-frames/meta.json +4 -0
  54. package/fixtures/pick-failed-query-with-frames/response.json +43 -0
  55. package/fixtures/pick-failed-query-with-frames/result.json +131 -0
  56. package/fixtures/pick-few-parts/args.json +10 -0
  57. package/fixtures/pick-few-parts/meta.json +4 -0
  58. package/fixtures/pick-few-parts/response.json +40 -0
  59. package/fixtures/pick-few-parts/result.json +98 -0
  60. package/fixtures/pick-heatmap-cells/args.json +10 -0
  61. package/fixtures/pick-heatmap-cells/meta.json +4 -0
  62. package/fixtures/pick-heatmap-cells/response.json +55 -0
  63. package/fixtures/pick-heatmap-cells/result.json +143 -0
  64. package/fixtures/pick-log-lines/args.json +10 -0
  65. package/fixtures/pick-log-lines/meta.json +4 -0
  66. package/fixtures/pick-log-lines/response.json +49 -0
  67. package/fixtures/pick-log-lines/result.json +76 -0
  68. package/fixtures/pick-no-rows/args.json +10 -0
  69. package/fixtures/pick-no-rows/meta.json +4 -0
  70. package/fixtures/pick-no-rows/response.json +32 -0
  71. package/fixtures/pick-no-rows/result.json +120 -0
  72. package/fixtures/pick-node-graph/args.json +10 -0
  73. package/fixtures/pick-node-graph/meta.json +4 -0
  74. package/fixtures/pick-node-graph/response.json +77 -0
  75. package/fixtures/pick-node-graph/result.json +89 -0
  76. package/fixtures/pick-numeric-only/args.json +10 -0
  77. package/fixtures/pick-numeric-only/meta.json +4 -0
  78. package/fixtures/pick-numeric-only/response.json +40 -0
  79. package/fixtures/pick-numeric-only/result.json +89 -0
  80. package/fixtures/pick-single-stat/args.json +10 -0
  81. package/fixtures/pick-single-stat/meta.json +4 -0
  82. package/fixtures/pick-single-stat/response.json +29 -0
  83. package/fixtures/pick-single-stat/result.json +69 -0
  84. package/fixtures/pick-time-series-instant/args.json +10 -0
  85. package/fixtures/pick-time-series-instant/meta.json +4 -0
  86. package/fixtures/pick-time-series-instant/response.json +40 -0
  87. package/fixtures/pick-time-series-instant/result.json +128 -0
  88. package/fixtures/pick-time-series-long/args.json +10 -0
  89. package/fixtures/pick-time-series-long/meta.json +4 -0
  90. package/fixtures/pick-time-series-long/response.json +61 -0
  91. package/fixtures/pick-time-series-long/result.json +167 -0
  92. package/fixtures/pick-time-series-multi-frame/args.json +10 -0
  93. package/fixtures/pick-time-series-multi-frame/meta.json +4 -0
  94. package/fixtures/pick-time-series-multi-frame/response.json +74 -0
  95. package/fixtures/pick-time-series-multi-frame/result.json +162 -0
  96. package/fixtures/pick-time-series-null-time/args.json +10 -0
  97. package/fixtures/pick-time-series-null-time/meta.json +4 -0
  98. package/fixtures/pick-time-series-null-time/response.json +40 -0
  99. package/fixtures/pick-time-series-null-time/result.json +128 -0
  100. package/fixtures/pick-time-series-single/args.json +10 -0
  101. package/fixtures/pick-time-series-single/meta.json +4 -0
  102. package/fixtures/pick-time-series-single/response.json +40 -0
  103. package/fixtures/pick-time-series-single/result.json +128 -0
  104. package/fixtures/pick-time-series-wide/args.json +10 -0
  105. package/fixtures/pick-time-series-wide/meta.json +4 -0
  106. package/fixtures/pick-time-series-wide/response.json +61 -0
  107. package/fixtures/pick-time-series-wide/result.json +149 -0
  108. package/fixtures/prometheus-line/args.json +14 -0
  109. package/fixtures/prometheus-line/meta.json +4 -0
  110. package/fixtures/prometheus-line/request.json +17 -0
  111. package/fixtures/prometheus-line/response.json +1344 -0
  112. package/fixtures/prometheus-line/result.json +1483 -0
  113. package/fixtures/prometheus-line/spec.json +1372 -0
  114. package/fixtures/prometheus-line/state.json +4 -0
  115. package/fixtures/smoke-barchart/spec.json +64 -0
  116. package/fixtures/smoke-barchart/state.json +4 -0
  117. package/fixtures/smoke-boxplot/spec.json +96 -0
  118. package/fixtures/smoke-boxplot/state.json +4 -0
  119. package/fixtures/smoke-bubble/spec.json +229 -0
  120. package/fixtures/smoke-bubble/state.json +4 -0
  121. package/fixtures/smoke-candlestick/spec.json +97 -0
  122. package/fixtures/smoke-candlestick/state.json +4 -0
  123. package/fixtures/smoke-chord/spec.json +72 -0
  124. package/fixtures/smoke-chord/state.json +4 -0
  125. package/fixtures/smoke-funnel/spec.json +62 -0
  126. package/fixtures/smoke-funnel/state.json +4 -0
  127. package/fixtures/smoke-geomap/spec.json +76 -0
  128. package/fixtures/smoke-geomap/state.json +4 -0
  129. package/fixtures/smoke-heatmap/spec.json +103 -0
  130. package/fixtures/smoke-heatmap/state.json +4 -0
  131. package/fixtures/smoke-histogram/spec.json +63 -0
  132. package/fixtures/smoke-histogram/state.json +4 -0
  133. package/fixtures/smoke-nodeGraph/spec.json +101 -0
  134. package/fixtures/smoke-nodeGraph/state.json +4 -0
  135. package/fixtures/smoke-parallel/spec.json +78 -0
  136. package/fixtures/smoke-parallel/state.json +4 -0
  137. package/fixtures/smoke-piechart/spec.json +62 -0
  138. package/fixtures/smoke-piechart/state.json +4 -0
  139. package/fixtures/smoke-radar/spec.json +82 -0
  140. package/fixtures/smoke-radar/state.json +4 -0
  141. package/fixtures/smoke-sankey/spec.json +72 -0
  142. package/fixtures/smoke-sankey/state.json +4 -0
  143. package/fixtures/smoke-state-timeline/spec.json +64 -0
  144. package/fixtures/smoke-state-timeline/state.json +4 -0
  145. package/fixtures/smoke-status-history/spec.json +64 -0
  146. package/fixtures/smoke-status-history/state.json +4 -0
  147. package/fixtures/smoke-streamgraph/spec.json +229 -0
  148. package/fixtures/smoke-streamgraph/state.json +4 -0
  149. package/fixtures/smoke-sunburst/spec.json +72 -0
  150. package/fixtures/smoke-sunburst/state.json +4 -0
  151. package/fixtures/smoke-timeseries/spec.json +163 -0
  152. package/fixtures/smoke-timeseries/state.json +4 -0
  153. package/fixtures/smoke-treemap/spec.json +72 -0
  154. package/fixtures/smoke-treemap/state.json +4 -0
  155. package/fixtures/too-large/args.json +14 -0
  156. package/fixtures/too-large/meta.json +4 -0
  157. package/fixtures/type-mismatch/args.json +15 -0
  158. package/fixtures/type-mismatch/meta.json +4 -0
  159. package/fixtures/type-mismatch/request.json +17 -0
  160. package/fixtures/type-mismatch/response.json +1344 -0
  161. package/fixtures/type-mismatch/result.json +9 -0
  162. package/package.json +32 -0
  163. package/registry/chart-types.json +170 -0
  164. package/registry/constants.json +14 -0
  165. package/registry/notices.json +40 -0
  166. package/registry/panel-types.json +14 -0
  167. package/registry/pick.json +46 -0
  168. package/registry/states.json +85 -0
  169. package/renderer-api.d.ts +70 -0
  170. package/schemas/bundled/query-datasource-args.schema.json +86 -0
  171. package/schemas/bundled/registry.schema.json +375 -0
  172. package/schemas/bundled/tool-result.schema.json +245 -0
  173. package/schemas/bundled/viz-spec.schema.json +261 -0
@@ -0,0 +1,447 @@
1
+ {
2
+ "specVersion": 1,
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "line"
7
+ },
8
+ "fieldConfig": {
9
+ "defaults": {
10
+ "unit": "reqps"
11
+ }
12
+ },
13
+ "datasource": {
14
+ "uid": "lgtm-prometheus"
15
+ },
16
+ "targets": [
17
+ {
18
+ "refId": "A",
19
+ "expr": "sum by (handler) (rate(grafana_http_request_duration_seconds_count[5m]))",
20
+ "legendFormat": "{{handler}}",
21
+ "format": "time_series"
22
+ }
23
+ ]
24
+ },
25
+ "data": {
26
+ "range": {
27
+ "from": 1790267077294,
28
+ "to": 1790353477294
29
+ },
30
+ "capturedAt": 1790353477806,
31
+ "results": {
32
+ "A": {
33
+ "status": 200,
34
+ "frames": [
35
+ {
36
+ "schema": {
37
+ "refId": "A",
38
+ "meta": {
39
+ "type": "timeseries-multi",
40
+ "typeVersion": [
41
+ 0,
42
+ 1
43
+ ]
44
+ },
45
+ "fields": [
46
+ {
47
+ "name": "Time",
48
+ "type": "time",
49
+ "typeInfo": {
50
+ "frame": "time.Time"
51
+ }
52
+ },
53
+ {
54
+ "name": "Value",
55
+ "type": "number",
56
+ "typeInfo": {
57
+ "frame": "float64"
58
+ },
59
+ "labels": {
60
+ "handler": "<img src=x onerror=alert(1)>"
61
+ },
62
+ "config": {
63
+ "displayNameFromDS": "<img src=x onerror=alert(1)>"
64
+ }
65
+ }
66
+ ]
67
+ },
68
+ "data": {
69
+ "values": [
70
+ [
71
+ 1790351737294,
72
+ 1790351797294,
73
+ 1790351857294,
74
+ 1790351917294,
75
+ 1790351977294,
76
+ 1790352037294,
77
+ 1790352097294,
78
+ 1790352157294,
79
+ 1790352217294,
80
+ 1790352277294,
81
+ 1790352337294,
82
+ 1790352397294,
83
+ 1790352457294,
84
+ 1790352517294,
85
+ 1790352577294,
86
+ 1790352637294,
87
+ 1790352697294,
88
+ 1790352757294,
89
+ 1790352817294,
90
+ 1790352877294,
91
+ 1790352937294,
92
+ 1790352997294,
93
+ 1790353057294,
94
+ 1790353117294,
95
+ 1790353177294,
96
+ 1790353237294,
97
+ 1790353297294,
98
+ 1790353357294,
99
+ 1790353417294,
100
+ 1790353477294
101
+ ],
102
+ [
103
+ 10,
104
+ 10.65,
105
+ 11.24,
106
+ 11.68,
107
+ 11.94,
108
+ 11.99,
109
+ 11.82,
110
+ 11.45,
111
+ 10.91,
112
+ 10.28,
113
+ 9.62,
114
+ 9,
115
+ 8.49,
116
+ 8.14,
117
+ 8,
118
+ 8.08,
119
+ 8.37,
120
+ 8.84,
121
+ 9.44,
122
+ 10.1,
123
+ 10.75,
124
+ 11.31,
125
+ 11.73,
126
+ 11.97,
127
+ 11.98,
128
+ 11.77,
129
+ 11.38,
130
+ 10.82,
131
+ 10.18,
132
+ 9.52
133
+ ]
134
+ ]
135
+ }
136
+ },
137
+ {
138
+ "schema": {
139
+ "refId": "A",
140
+ "meta": {
141
+ "type": "timeseries-multi",
142
+ "typeVersion": [
143
+ 0,
144
+ 1
145
+ ]
146
+ },
147
+ "fields": [
148
+ {
149
+ "name": "Time",
150
+ "type": "time",
151
+ "typeInfo": {
152
+ "frame": "time.Time"
153
+ }
154
+ },
155
+ {
156
+ "name": "Value",
157
+ "type": "number",
158
+ "typeInfo": {
159
+ "frame": "float64"
160
+ },
161
+ "labels": {
162
+ "handler": "</script><script>alert(2)</script>"
163
+ },
164
+ "config": {
165
+ "displayNameFromDS": "</script><script>alert(2)</script>"
166
+ }
167
+ }
168
+ ]
169
+ },
170
+ "data": {
171
+ "values": [
172
+ [
173
+ 1790351737294,
174
+ 1790351797294,
175
+ 1790351857294,
176
+ 1790351917294,
177
+ 1790351977294,
178
+ 1790352037294,
179
+ 1790352097294,
180
+ 1790352157294,
181
+ 1790352217294,
182
+ 1790352277294,
183
+ 1790352337294,
184
+ 1790352397294,
185
+ 1790352457294,
186
+ 1790352517294,
187
+ 1790352577294,
188
+ 1790352637294,
189
+ 1790352697294,
190
+ 1790352757294,
191
+ 1790352817294,
192
+ 1790352877294,
193
+ 1790352937294,
194
+ 1790352997294,
195
+ 1790353057294,
196
+ 1790353117294,
197
+ 1790353177294,
198
+ 1790353237294,
199
+ 1790353297294,
200
+ 1790353357294,
201
+ 1790353417294,
202
+ 1790353477294
203
+ ],
204
+ [
205
+ 14.68,
206
+ 14.94,
207
+ 14.99,
208
+ 14.82,
209
+ 14.45,
210
+ 13.91,
211
+ 13.28,
212
+ 12.62,
213
+ 12,
214
+ 11.49,
215
+ 11.14,
216
+ 11,
217
+ 11.08,
218
+ 11.37,
219
+ 11.84,
220
+ 12.44,
221
+ 13.1,
222
+ 13.75,
223
+ 14.31,
224
+ 14.73,
225
+ 14.97,
226
+ 14.98,
227
+ 14.77,
228
+ 14.38,
229
+ 13.82,
230
+ 13.18,
231
+ 12.52,
232
+ 11.91,
233
+ 11.42,
234
+ 11.11
235
+ ]
236
+ ]
237
+ }
238
+ },
239
+ {
240
+ "schema": {
241
+ "refId": "A",
242
+ "meta": {
243
+ "type": "timeseries-multi",
244
+ "typeVersion": [
245
+ 0,
246
+ 1
247
+ ]
248
+ },
249
+ "fields": [
250
+ {
251
+ "name": "Time",
252
+ "type": "time",
253
+ "typeInfo": {
254
+ "frame": "time.Time"
255
+ }
256
+ },
257
+ {
258
+ "name": "Value",
259
+ "type": "number",
260
+ "typeInfo": {
261
+ "frame": "float64"
262
+ },
263
+ "labels": {
264
+ "handler": "{{constructor.constructor(\"alert(3)\")()}}"
265
+ },
266
+ "config": {
267
+ "displayNameFromDS": "{{constructor.constructor(\"alert(3)\")()}}"
268
+ }
269
+ }
270
+ ]
271
+ },
272
+ "data": {
273
+ "values": [
274
+ [
275
+ 1790351737294,
276
+ 1790351797294,
277
+ 1790351857294,
278
+ 1790351917294,
279
+ 1790351977294,
280
+ 1790352037294,
281
+ 1790352097294,
282
+ 1790352157294,
283
+ 1790352217294,
284
+ 1790352277294,
285
+ 1790352337294,
286
+ 1790352397294,
287
+ 1790352457294,
288
+ 1790352517294,
289
+ 1790352577294,
290
+ 1790352637294,
291
+ 1790352697294,
292
+ 1790352757294,
293
+ 1790352817294,
294
+ 1790352877294,
295
+ 1790352937294,
296
+ 1790352997294,
297
+ 1790353057294,
298
+ 1790353117294,
299
+ 1790353177294,
300
+ 1790353237294,
301
+ 1790353297294,
302
+ 1790353357294,
303
+ 1790353417294,
304
+ 1790353477294
305
+ ],
306
+ [
307
+ 17.82,
308
+ 17.45,
309
+ 16.91,
310
+ 16.28,
311
+ 15.62,
312
+ 15,
313
+ 14.49,
314
+ 14.14,
315
+ 14,
316
+ 14.08,
317
+ 14.37,
318
+ 14.84,
319
+ 15.44,
320
+ 16.1,
321
+ 16.75,
322
+ 17.31,
323
+ 17.73,
324
+ 17.97,
325
+ 17.98,
326
+ 17.77,
327
+ 17.38,
328
+ 16.82,
329
+ 16.18,
330
+ 15.52,
331
+ 14.91,
332
+ 14.42,
333
+ 14.11,
334
+ 14,
335
+ 14.11,
336
+ 14.43
337
+ ]
338
+ ]
339
+ }
340
+ },
341
+ {
342
+ "schema": {
343
+ "refId": "A",
344
+ "meta": {
345
+ "type": "timeseries-multi",
346
+ "typeVersion": [
347
+ 0,
348
+ 1
349
+ ]
350
+ },
351
+ "fields": [
352
+ {
353
+ "name": "Time",
354
+ "type": "time",
355
+ "typeInfo": {
356
+ "frame": "time.Time"
357
+ }
358
+ },
359
+ {
360
+ "name": "Value",
361
+ "type": "number",
362
+ "typeInfo": {
363
+ "frame": "float64"
364
+ },
365
+ "labels": {
366
+ "handler": "\"><svg onload=alert(4)>"
367
+ },
368
+ "config": {
369
+ "displayNameFromDS": "\"><svg onload=alert(4)>"
370
+ }
371
+ }
372
+ ]
373
+ },
374
+ "data": {
375
+ "values": [
376
+ [
377
+ 1790351737294,
378
+ 1790351797294,
379
+ 1790351857294,
380
+ 1790351917294,
381
+ 1790351977294,
382
+ 1790352037294,
383
+ 1790352097294,
384
+ 1790352157294,
385
+ 1790352217294,
386
+ 1790352277294,
387
+ 1790352337294,
388
+ 1790352397294,
389
+ 1790352457294,
390
+ 1790352517294,
391
+ 1790352577294,
392
+ 1790352637294,
393
+ 1790352697294,
394
+ 1790352757294,
395
+ 1790352817294,
396
+ 1790352877294,
397
+ 1790352937294,
398
+ 1790352997294,
399
+ 1790353057294,
400
+ 1790353117294,
401
+ 1790353177294,
402
+ 1790353237294,
403
+ 1790353297294,
404
+ 1790353357294,
405
+ 1790353417294,
406
+ 1790353477294
407
+ ],
408
+ [
409
+ 19.28,
410
+ 18.62,
411
+ 18,
412
+ 17.49,
413
+ 17.14,
414
+ 17,
415
+ 17.08,
416
+ 17.37,
417
+ 17.84,
418
+ 18.44,
419
+ 19.1,
420
+ 19.75,
421
+ 20.31,
422
+ 20.73,
423
+ 20.97,
424
+ 20.98,
425
+ 20.77,
426
+ 20.38,
427
+ 19.82,
428
+ 19.18,
429
+ 18.52,
430
+ 17.91,
431
+ 17.42,
432
+ 17.11,
433
+ 17,
434
+ 17.11,
435
+ 17.43,
436
+ 17.93,
437
+ 18.54,
438
+ 19.2
439
+ ]
440
+ ]
441
+ }
442
+ }
443
+ ]
444
+ }
445
+ }
446
+ }
447
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "state": "ready",
3
+ "notices": []
4
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "datasourceUid": "lgtm-prometheus",
3
+ "queries": [
4
+ {
5
+ "refId": "A",
6
+ "expr": "sum by (handler) (rate(missing_metric_total[5m]))",
7
+ "legendFormat": "{{handler}}",
8
+ "format": "time_series"
9
+ }
10
+ ],
11
+ "from": "now-24h",
12
+ "to": "now",
13
+ "unit": "reqps"
14
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "now": 1790353477294,
3
+ "capturedAt": 1790353477806
4
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "from": "now-24h",
3
+ "to": "now",
4
+ "queries": [
5
+ {
6
+ "refId": "A",
7
+ "expr": "sum by (handler) (rate(missing_metric_total[5m]))",
8
+ "legendFormat": "{{handler}}",
9
+ "format": "time_series",
10
+ "datasource": {
11
+ "uid": "lgtm-prometheus"
12
+ },
13
+ "maxDataPoints": 1000,
14
+ "intervalMs": 86400
15
+ }
16
+ ]
17
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "status": 200,
3
+ "body": {
4
+ "results": {
5
+ "A": {
6
+ "status": 200,
7
+ "frames": [
8
+ {
9
+ "schema": {
10
+ "refId": "A",
11
+ "meta": {
12
+ "type": "timeseries-multi",
13
+ "typeVersion": [
14
+ 0,
15
+ 1
16
+ ]
17
+ },
18
+ "fields": [
19
+ {
20
+ "name": "Time",
21
+ "type": "time"
22
+ },
23
+ {
24
+ "name": "Value",
25
+ "type": "number"
26
+ }
27
+ ]
28
+ },
29
+ "data": {
30
+ "values": [
31
+ [],
32
+ []
33
+ ]
34
+ }
35
+ }
36
+ ]
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,178 @@
1
+ {
2
+ "chart": "timeseries",
3
+ "panel": {
4
+ "type": "grafana-echartscartesian-panel",
5
+ "options": {
6
+ "seriesType": "line"
7
+ },
8
+ "fieldConfig": {
9
+ "defaults": {
10
+ "unit": "reqps"
11
+ }
12
+ }
13
+ },
14
+ "alternatives": [
15
+ {
16
+ "chart": "barchart",
17
+ "panel": {
18
+ "type": "grafana-echartscartesian-panel",
19
+ "options": {
20
+ "seriesType": "bar"
21
+ },
22
+ "fieldConfig": {
23
+ "defaults": {
24
+ "unit": "reqps"
25
+ }
26
+ }
27
+ }
28
+ },
29
+ {
30
+ "chart": "histogram",
31
+ "panel": {
32
+ "type": "grafana-echartscartesian-panel",
33
+ "options": {
34
+ "histogram": true
35
+ },
36
+ "fieldConfig": {
37
+ "defaults": {
38
+ "unit": "reqps"
39
+ }
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "chart": "piechart",
45
+ "panel": {
46
+ "type": "grafana-echartsparttowhole-panel",
47
+ "options": {
48
+ "seriesType": "pie"
49
+ },
50
+ "fieldConfig": {
51
+ "defaults": {
52
+ "unit": "reqps"
53
+ }
54
+ }
55
+ }
56
+ },
57
+ {
58
+ "chart": "funnel",
59
+ "panel": {
60
+ "type": "grafana-echartsparttowhole-panel",
61
+ "options": {
62
+ "seriesType": "funnel"
63
+ },
64
+ "fieldConfig": {
65
+ "defaults": {
66
+ "unit": "reqps"
67
+ }
68
+ }
69
+ }
70
+ },
71
+ {
72
+ "chart": "heatmap",
73
+ "panel": {
74
+ "type": "grafana-echartsheatmap-panel",
75
+ "options": {},
76
+ "fieldConfig": {
77
+ "defaults": {
78
+ "unit": "reqps"
79
+ }
80
+ }
81
+ }
82
+ },
83
+ {
84
+ "chart": "state-timeline",
85
+ "panel": {
86
+ "type": "grafana-echartsstatetimeline-panel",
87
+ "options": {},
88
+ "fieldConfig": {
89
+ "defaults": {
90
+ "unit": "reqps"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ {
96
+ "chart": "status-history",
97
+ "panel": {
98
+ "type": "grafana-echartsstatushistory-panel",
99
+ "options": {},
100
+ "fieldConfig": {
101
+ "defaults": {
102
+ "unit": "reqps"
103
+ }
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "chart": "streamgraph",
109
+ "panel": {
110
+ "type": "grafana-echartsstream-panel",
111
+ "options": {
112
+ "streamChartType": "river"
113
+ },
114
+ "fieldConfig": {
115
+ "defaults": {
116
+ "unit": "reqps"
117
+ }
118
+ }
119
+ }
120
+ },
121
+ {
122
+ "chart": "bubble",
123
+ "panel": {
124
+ "type": "grafana-echartsstream-panel",
125
+ "options": {
126
+ "streamChartType": "bubble"
127
+ },
128
+ "fieldConfig": {
129
+ "defaults": {
130
+ "unit": "reqps"
131
+ }
132
+ }
133
+ }
134
+ }
135
+ ],
136
+ "data": {
137
+ "range": {
138
+ "from": 1790267077294,
139
+ "to": 1790353477294
140
+ },
141
+ "capturedAt": 1790353477806,
142
+ "results": {
143
+ "A": {
144
+ "status": 200,
145
+ "frames": [
146
+ {
147
+ "schema": {
148
+ "refId": "A",
149
+ "meta": {
150
+ "type": "timeseries-multi",
151
+ "typeVersion": [
152
+ 0,
153
+ 1
154
+ ]
155
+ },
156
+ "fields": [
157
+ {
158
+ "name": "Time",
159
+ "type": "time"
160
+ },
161
+ {
162
+ "name": "Value",
163
+ "type": "number"
164
+ }
165
+ ]
166
+ },
167
+ "data": {
168
+ "values": [
169
+ [],
170
+ []
171
+ ]
172
+ }
173
+ }
174
+ ]
175
+ }
176
+ }
177
+ }
178
+ }