@cloudcare/guance-front-tools 1.0.12 → 1.0.13

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 (39) hide show
  1. package/guance-all-charts.json +3415 -0
  2. package/lib/cjs/generated/dashboardCharts.d.ts +54 -13
  3. package/lib/cjs/scripts/grafana-covert-to-guance-core.d.ts +1 -1
  4. package/lib/cjs/scripts/grafana-covert-to-guance-core.js +5 -289
  5. package/lib/esm/generated/dashboardCharts.d.ts +54 -13
  6. package/lib/esm/scripts/grafana-covert-to-guance-core.d.ts +1 -1
  7. package/lib/esm/scripts/grafana-covert-to-guance-core.js +5 -289
  8. package/lib/example/grafana2.json +878 -0
  9. package/lib/example/guance-dahs-3.json +348 -0
  10. package/lib/scripts/grafana-covert-to-guance-core.js +5 -286
  11. package/lib/scripts/grafana-covert-to-guance-core.ts +12 -326
  12. package/lib/scripts/grafana-covert-to-guance.js +52 -29
  13. package/lib/scripts/grafana-covert-to-guance.ts +60 -32
  14. package/package.json +4 -3
  15. package/schemas/charts/chart-schema.json +8 -5
  16. package/schemas/charts/common/chart-link-item-schema.json +48 -0
  17. package/schemas/charts/common/chart-links-schema.json +9 -0
  18. package/schemas/charts/common/common-chart-types-schema.json +3 -1
  19. package/schemas/charts/dashboard-schema.json +11 -4
  20. package/schemas/charts/query/query-item-schema.json +19 -1
  21. package/schemas/charts/settings/settings-time-schema.json +1 -5
  22. package/schemas/charts/settings/settings-unit-items-schema.json +3 -1
  23. package/schemas/charts/settings/settings-units-schema.json +2 -3
  24. package/scripts/validate-file.mjs +57 -0
  25. package/skills/grafana-to-guance-dashboard/SKILL.md +102 -0
  26. package/skills/grafana-to-guance-dashboard/agents/openai.yaml +4 -0
  27. package/skills/grafana-to-guance-dashboard/references/converter-notes.md +134 -0
  28. package/skills/grafana-to-guance-dashboard/scripts/convert-grafana-dashboard.mjs +1899 -0
  29. package/test/cli.test.mjs +316 -0
  30. package/test-output/grafana2.cli.guance.json +1029 -0
  31. package/test-output/grafana2.guance.json +1029 -0
  32. package/test-output/grafana2.keep-meta.guance.json +1384 -0
  33. package/test-output/pod.guance.json +2153 -0
  34. package/test-output/skill-test2-enhanced.guance.json +21596 -0
  35. package/test-output/skill-test2-validated.guance.json +11610 -0
  36. package/test-output/skill-test2.guance.json +11610 -0
  37. package/test-output/test.guance.json +1086 -0
  38. package/test-output/test2.guance.guance-promql.json +23212 -0
  39. package/test-output/test2.guance.json +17554 -0
@@ -0,0 +1,878 @@
1
+ {
2
+ "annotations": {
3
+ "list": [
4
+ {
5
+ "builtIn": 1,
6
+ "datasource": {
7
+ "type": "grafana",
8
+ "uid": "-- Grafana --"
9
+ },
10
+ "enable": true,
11
+ "hide": true,
12
+ "iconColor": "rgba(0, 211, 255, 1)",
13
+ "name": "Annotations & Alerts",
14
+ "target": {
15
+ "limit": 100,
16
+ "matchAny": false,
17
+ "tags": [],
18
+ "type": "dashboard"
19
+ },
20
+ "type": "dashboard"
21
+ }
22
+ ]
23
+ },
24
+ "editable": true,
25
+ "fiscalYearStartMonth": 0,
26
+ "graphTooltip": 2,
27
+ "id": 14,
28
+ "links": [],
29
+ "liveNow": false,
30
+ "panels": [
31
+ {
32
+ "datasource": {
33
+ "type": "guance-guance-datasource",
34
+ "uid": "o9PpQVUHz"
35
+ },
36
+ "fieldConfig": {
37
+ "defaults": {
38
+ "color": {
39
+ "mode": "palette-classic"
40
+ },
41
+ "custom": {
42
+ "axisCenteredZero": false,
43
+ "axisColorMode": "text",
44
+ "axisLabel": "",
45
+ "axisPlacement": "auto",
46
+ "barAlignment": 0,
47
+ "drawStyle": "line",
48
+ "fillOpacity": 0,
49
+ "gradientMode": "none",
50
+ "hideFrom": {
51
+ "legend": false,
52
+ "tooltip": false,
53
+ "viz": false
54
+ },
55
+ "lineInterpolation": "linear",
56
+ "lineWidth": 1,
57
+ "pointSize": 5,
58
+ "scaleDistribution": {
59
+ "type": "linear"
60
+ },
61
+ "showPoints": "auto",
62
+ "spanNulls": false,
63
+ "stacking": {
64
+ "group": "A",
65
+ "mode": "none"
66
+ },
67
+ "thresholdsStyle": {
68
+ "mode": "off"
69
+ }
70
+ },
71
+ "mappings": [],
72
+ "thresholds": {
73
+ "mode": "absolute",
74
+ "steps": [
75
+ {
76
+ "color": "green",
77
+ "value": null
78
+ },
79
+ {
80
+ "color": "red",
81
+ "value": 80
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ "overrides": []
87
+ },
88
+ "gridPos": {
89
+ "h": 8,
90
+ "w": 12,
91
+ "x": 0,
92
+ "y": 0
93
+ },
94
+ "id": 16,
95
+ "options": {
96
+ "legend": {
97
+ "calcs": [],
98
+ "displayMode": "list",
99
+ "placement": "bottom",
100
+ "showLegend": true
101
+ },
102
+ "tooltip": {
103
+ "mode": "single",
104
+ "sort": "none"
105
+ }
106
+ },
107
+ "targets": [
108
+ {
109
+ "datasource": {
110
+ "type": "guance-guance-datasource",
111
+ "uid": "o9PpQVUHz"
112
+ },
113
+ "queryText": "M::datadog:(avg(`dogstatsd_client_aggregated_context`)) BY `host`",
114
+ "refId": "A"
115
+ }
116
+ ],
117
+ "title": "Panel Title",
118
+ "type": "timeseries"
119
+ },
120
+ {
121
+ "datasource": {
122
+ "type": "guance-guance-datasource",
123
+ "uid": "o9PpQVUHz"
124
+ },
125
+ "fieldConfig": {
126
+ "defaults": {
127
+ "color": {
128
+ "mode": "palette-classic"
129
+ },
130
+ "custom": {
131
+ "axisCenteredZero": false,
132
+ "axisColorMode": "text",
133
+ "axisLabel": "",
134
+ "axisPlacement": "auto",
135
+ "barAlignment": 0,
136
+ "drawStyle": "line",
137
+ "fillOpacity": 0,
138
+ "gradientMode": "none",
139
+ "hideFrom": {
140
+ "legend": false,
141
+ "tooltip": false,
142
+ "viz": false
143
+ },
144
+ "lineInterpolation": "linear",
145
+ "lineWidth": 1,
146
+ "pointSize": 5,
147
+ "scaleDistribution": {
148
+ "type": "linear"
149
+ },
150
+ "showPoints": "auto",
151
+ "spanNulls": false,
152
+ "stacking": {
153
+ "group": "A",
154
+ "mode": "none"
155
+ },
156
+ "thresholdsStyle": {
157
+ "mode": "off"
158
+ }
159
+ },
160
+ "mappings": [],
161
+ "thresholds": {
162
+ "mode": "absolute",
163
+ "steps": [
164
+ {
165
+ "color": "green",
166
+ "value": null
167
+ },
168
+ {
169
+ "color": "red",
170
+ "value": 80
171
+ }
172
+ ]
173
+ }
174
+ },
175
+ "overrides": []
176
+ },
177
+ "gridPos": {
178
+ "h": 8,
179
+ "w": 12,
180
+ "x": 12,
181
+ "y": 0
182
+ },
183
+ "id": 14,
184
+ "options": {
185
+ "legend": {
186
+ "calcs": [],
187
+ "displayMode": "list",
188
+ "placement": "bottom",
189
+ "showLegend": true
190
+ },
191
+ "tooltip": {
192
+ "mode": "single",
193
+ "sort": "none"
194
+ }
195
+ },
196
+ "targets": [
197
+ {
198
+ "datasource": {
199
+ "type": "guance-guance-datasource",
200
+ "uid": "o9PpQVUHz"
201
+ },
202
+ "legendFormat": "add",
203
+ "queryText": "M::`cpu`:(avg(`load5s`)) by host",
204
+ "refId": "A"
205
+ }
206
+ ],
207
+ "title": "Panel Title",
208
+ "type": "timeseries"
209
+ },
210
+ {
211
+ "datasource": {
212
+ "type": "guance-guance-datasource",
213
+ "uid": "o9PpQVUHz"
214
+ },
215
+ "fieldConfig": {
216
+ "defaults": {
217
+ "color": {
218
+ "mode": "palette-classic"
219
+ },
220
+ "custom": {
221
+ "axisCenteredZero": false,
222
+ "axisColorMode": "text",
223
+ "axisLabel": "",
224
+ "axisPlacement": "auto",
225
+ "barAlignment": 0,
226
+ "drawStyle": "line",
227
+ "fillOpacity": 0,
228
+ "gradientMode": "none",
229
+ "hideFrom": {
230
+ "legend": false,
231
+ "tooltip": false,
232
+ "viz": false
233
+ },
234
+ "lineInterpolation": "linear",
235
+ "lineWidth": 1,
236
+ "pointSize": 5,
237
+ "scaleDistribution": {
238
+ "type": "linear"
239
+ },
240
+ "showPoints": "auto",
241
+ "spanNulls": false,
242
+ "stacking": {
243
+ "group": "A",
244
+ "mode": "none"
245
+ },
246
+ "thresholdsStyle": {
247
+ "mode": "off"
248
+ }
249
+ },
250
+ "mappings": [],
251
+ "thresholds": {
252
+ "mode": "absolute",
253
+ "steps": [
254
+ {
255
+ "color": "green",
256
+ "value": null
257
+ },
258
+ {
259
+ "color": "red",
260
+ "value": 80
261
+ }
262
+ ]
263
+ }
264
+ },
265
+ "overrides": []
266
+ },
267
+ "gridPos": {
268
+ "h": 8,
269
+ "w": 12,
270
+ "x": 0,
271
+ "y": 8
272
+ },
273
+ "id": 8,
274
+ "options": {
275
+ "legend": {
276
+ "calcs": [],
277
+ "displayMode": "list",
278
+ "placement": "bottom",
279
+ "showLegend": true
280
+ },
281
+ "tooltip": {
282
+ "mode": "single",
283
+ "sort": "none"
284
+ }
285
+ },
286
+ "pluginVersion": "9.3.8",
287
+ "targets": [
288
+ {
289
+ "datasource": {
290
+ "type": "guance-guance-datasource",
291
+ "uid": "o9PpQVUHz"
292
+ },
293
+ "qtype": "promql",
294
+ "queryText": "avg(cpu:load5s) by (region)",
295
+ "refId": "A"
296
+ }
297
+ ],
298
+ "title": "Panel Title",
299
+ "type": "timeseries"
300
+ },
301
+ {
302
+ "datasource": {
303
+ "type": "guance-guance-datasource",
304
+ "uid": "o9PpQVUHz"
305
+ },
306
+ "fieldConfig": {
307
+ "defaults": {
308
+ "color": {
309
+ "mode": "palette-classic"
310
+ },
311
+ "custom": {
312
+ "axisCenteredZero": false,
313
+ "axisColorMode": "text",
314
+ "axisLabel": "",
315
+ "axisPlacement": "auto",
316
+ "barAlignment": 0,
317
+ "drawStyle": "line",
318
+ "fillOpacity": 0,
319
+ "gradientMode": "none",
320
+ "hideFrom": {
321
+ "legend": false,
322
+ "tooltip": false,
323
+ "viz": false
324
+ },
325
+ "lineInterpolation": "linear",
326
+ "lineWidth": 1,
327
+ "pointSize": 5,
328
+ "scaleDistribution": {
329
+ "type": "linear"
330
+ },
331
+ "showPoints": "auto",
332
+ "spanNulls": false,
333
+ "stacking": {
334
+ "group": "A",
335
+ "mode": "none"
336
+ },
337
+ "thresholdsStyle": {
338
+ "mode": "off"
339
+ }
340
+ },
341
+ "mappings": [],
342
+ "thresholds": {
343
+ "mode": "absolute",
344
+ "steps": [
345
+ {
346
+ "color": "green",
347
+ "value": null
348
+ },
349
+ {
350
+ "color": "red",
351
+ "value": 80
352
+ }
353
+ ]
354
+ }
355
+ },
356
+ "overrides": []
357
+ },
358
+ "gridPos": {
359
+ "h": 8,
360
+ "w": 12,
361
+ "x": 12,
362
+ "y": 8
363
+ },
364
+ "id": 6,
365
+ "options": {
366
+ "legend": {
367
+ "calcs": [],
368
+ "displayMode": "list",
369
+ "placement": "bottom",
370
+ "showLegend": true
371
+ },
372
+ "tooltip": {
373
+ "mode": "single",
374
+ "sort": "none"
375
+ }
376
+ },
377
+ "targets": [
378
+ {
379
+ "datasource": {
380
+ "type": "guance-guance-datasource",
381
+ "uid": "o9PpQVUHz"
382
+ },
383
+ "legendFormat": "test别别别别别别别别别名别别别别名别别别别别别别别别名 {{host}}---------{{region}} ",
384
+ "qtype": "promql",
385
+ "queryText": "avg(cpu:load5s) by (host,region)",
386
+ "refId": "A"
387
+ }
388
+ ],
389
+ "title": "Panel Title",
390
+ "type": "timeseries"
391
+ },
392
+ {
393
+ "datasource": {
394
+ "type": "guance-guance-datasource",
395
+ "uid": "-HcExU8Hk"
396
+ },
397
+ "fieldConfig": {
398
+ "defaults": {
399
+ "color": {
400
+ "mode": "palette-classic"
401
+ },
402
+ "custom": {
403
+ "axisCenteredZero": false,
404
+ "axisColorMode": "text",
405
+ "axisLabel": "",
406
+ "axisPlacement": "auto",
407
+ "barAlignment": 0,
408
+ "drawStyle": "line",
409
+ "fillOpacity": 0,
410
+ "gradientMode": "none",
411
+ "hideFrom": {
412
+ "legend": false,
413
+ "tooltip": false,
414
+ "viz": false
415
+ },
416
+ "lineInterpolation": "linear",
417
+ "lineWidth": 1,
418
+ "pointSize": 5,
419
+ "scaleDistribution": {
420
+ "type": "linear"
421
+ },
422
+ "showPoints": "auto",
423
+ "spanNulls": false,
424
+ "stacking": {
425
+ "group": "A",
426
+ "mode": "none"
427
+ },
428
+ "thresholdsStyle": {
429
+ "mode": "off"
430
+ }
431
+ },
432
+ "mappings": [],
433
+ "thresholds": {
434
+ "mode": "absolute",
435
+ "steps": [
436
+ {
437
+ "color": "green",
438
+ "value": null
439
+ },
440
+ {
441
+ "color": "red",
442
+ "value": 80
443
+ }
444
+ ]
445
+ }
446
+ },
447
+ "overrides": []
448
+ },
449
+ "gridPos": {
450
+ "h": 9,
451
+ "w": 12,
452
+ "x": 0,
453
+ "y": 16
454
+ },
455
+ "id": 2,
456
+ "options": {
457
+ "legend": {
458
+ "calcs": [],
459
+ "displayMode": "list",
460
+ "placement": "bottom",
461
+ "showLegend": true
462
+ },
463
+ "tooltip": {
464
+ "mode": "single",
465
+ "sort": "none"
466
+ }
467
+ },
468
+ "targets": [
469
+ {
470
+ "datasource": {
471
+ "type": "guance-guance-datasource",
472
+ "uid": "-HcExU8Hk"
473
+ },
474
+ "hide": false,
475
+ "legendFormat": "别名123+test {{host}}",
476
+ "qtype": "dql",
477
+ "queryText": "M::disk:(avg(`free`)) BY `host`",
478
+ "refId": "A"
479
+ }
480
+ ],
481
+ "title": "Panel Title",
482
+ "type": "timeseries"
483
+ },
484
+ {
485
+ "datasource": {
486
+ "type": "guance-guance-datasource",
487
+ "uid": "o9PpQVUHz"
488
+ },
489
+ "fieldConfig": {
490
+ "defaults": {
491
+ "color": {
492
+ "mode": "palette-classic"
493
+ },
494
+ "custom": {
495
+ "axisCenteredZero": false,
496
+ "axisColorMode": "text",
497
+ "axisLabel": "",
498
+ "axisPlacement": "auto",
499
+ "barAlignment": 0,
500
+ "drawStyle": "line",
501
+ "fillOpacity": 0,
502
+ "gradientMode": "none",
503
+ "hideFrom": {
504
+ "legend": false,
505
+ "tooltip": false,
506
+ "viz": false
507
+ },
508
+ "lineInterpolation": "linear",
509
+ "lineWidth": 1,
510
+ "pointSize": 5,
511
+ "scaleDistribution": {
512
+ "type": "linear"
513
+ },
514
+ "showPoints": "auto",
515
+ "spanNulls": false,
516
+ "stacking": {
517
+ "group": "A",
518
+ "mode": "none"
519
+ },
520
+ "thresholdsStyle": {
521
+ "mode": "off"
522
+ }
523
+ },
524
+ "mappings": [],
525
+ "thresholds": {
526
+ "mode": "absolute",
527
+ "steps": [
528
+ {
529
+ "color": "green",
530
+ "value": null
531
+ },
532
+ {
533
+ "color": "red",
534
+ "value": 80
535
+ }
536
+ ]
537
+ }
538
+ },
539
+ "overrides": []
540
+ },
541
+ "gridPos": {
542
+ "h": 8,
543
+ "w": 12,
544
+ "x": 12,
545
+ "y": 16
546
+ },
547
+ "id": 18,
548
+ "options": {
549
+ "legend": {
550
+ "calcs": [],
551
+ "displayMode": "list",
552
+ "placement": "bottom",
553
+ "showLegend": true
554
+ },
555
+ "tooltip": {
556
+ "mode": "single",
557
+ "sort": "none"
558
+ }
559
+ },
560
+ "targets": [
561
+ {
562
+ "datasource": {
563
+ "type": "guance-guance-datasource",
564
+ "uid": "o9PpQVUHz"
565
+ },
566
+ "queryText": "M::datadog:(avg(`dogstatsd_client_aggregated_context`), avg(`dogstatsd_client_aggregated_context_by_type`), avg(`dogstatsd_client_bytes_dropped_queue`)) BY `host`",
567
+ "refId": "A"
568
+ }
569
+ ],
570
+ "title": "Panel Title",
571
+ "type": "timeseries"
572
+ },
573
+ {
574
+ "gridPos": {
575
+ "h": 1,
576
+ "w": 24,
577
+ "x": 0,
578
+ "y": 25
579
+ },
580
+ "id": 12,
581
+ "title": "Row title",
582
+ "type": "row"
583
+ },
584
+ {
585
+ "datasource": {
586
+ "type": "guance-guance-datasource",
587
+ "uid": "o9PpQVUHz"
588
+ },
589
+ "fieldConfig": {
590
+ "defaults": {
591
+ "color": {
592
+ "mode": "palette-classic"
593
+ },
594
+ "custom": {
595
+ "axisCenteredZero": false,
596
+ "axisColorMode": "text",
597
+ "axisLabel": "",
598
+ "axisPlacement": "auto",
599
+ "barAlignment": 0,
600
+ "drawStyle": "line",
601
+ "fillOpacity": 0,
602
+ "gradientMode": "none",
603
+ "hideFrom": {
604
+ "legend": false,
605
+ "tooltip": false,
606
+ "viz": false
607
+ },
608
+ "lineInterpolation": "linear",
609
+ "lineWidth": 1,
610
+ "pointSize": 5,
611
+ "scaleDistribution": {
612
+ "type": "linear"
613
+ },
614
+ "showPoints": "auto",
615
+ "spanNulls": false,
616
+ "stacking": {
617
+ "group": "A",
618
+ "mode": "none"
619
+ },
620
+ "thresholdsStyle": {
621
+ "mode": "off"
622
+ }
623
+ },
624
+ "mappings": [],
625
+ "thresholds": {
626
+ "mode": "absolute",
627
+ "steps": [
628
+ {
629
+ "color": "green",
630
+ "value": null
631
+ },
632
+ {
633
+ "color": "red",
634
+ "value": 80
635
+ }
636
+ ]
637
+ }
638
+ },
639
+ "overrides": []
640
+ },
641
+ "gridPos": {
642
+ "h": 8,
643
+ "w": 12,
644
+ "x": 0,
645
+ "y": 26
646
+ },
647
+ "id": 10,
648
+ "options": {
649
+ "legend": {
650
+ "calcs": [],
651
+ "displayMode": "list",
652
+ "placement": "bottom",
653
+ "showLegend": true
654
+ },
655
+ "tooltip": {
656
+ "mode": "single",
657
+ "sort": "none"
658
+ }
659
+ },
660
+ "targets": [
661
+ {
662
+ "datasource": {
663
+ "type": "guance-guance-datasource",
664
+ "uid": "o9PpQVUHz"
665
+ },
666
+ "qtype": "promql",
667
+ "queryText": "(sum(rate(container_cpu_usage_seconds_total{ pod=~\"act-internal-tool-v00001600-5d78984d9f-v5gpj|act-internal-tool-v00001694-6c78897c97-j9b9g|act-internal-tool-v00001694-6c78897c97-whjkb\", image!=\"\", cluster_name_k8s=~\".*\", namespace=~\"act|agent|apisix|asset|com|crm|cswap|datakit|default|devops-operator-system|feed|growth|hivesec|infra|istio-ingress|istio-system|kirin|kube-system|liquidity|risk|spot|std|str|swap|wealth|web|web3\"}[1m]))by(pod,container)) / (sum(kube_pod_container_resource_limits{ pod=~\"act-internal-tool-v00001600-5d78984d9f-v5gpj|act-internal-tool-v00001694-6c78897c97-j9b9g|act-internal-tool-v00001694-6c78897c97-whjkb\", resource=~\"cpu\", cluster_name_k8s=~\".*\", namespace=~\"act|agent|apisix|asset|com|crm|cswap|datakit|default|devops-operator-system|feed|growth|hivesec|infra|istio-ingress|istio-system|kirin|kube-system|liquidity|risk|spot|std|str|swap|wealth|web|web3\"})by(pod,container))",
668
+ "refId": "A"
669
+ }
670
+ ],
671
+ "title": "Panel Title",
672
+ "type": "timeseries"
673
+ },
674
+ {
675
+ "datasource": {
676
+ "type": "guance-guance-datasource",
677
+ "uid": "2270qUUNz"
678
+ },
679
+ "fieldConfig": {
680
+ "defaults": {
681
+ "color": {
682
+ "mode": "palette-classic"
683
+ },
684
+ "custom": {
685
+ "axisCenteredZero": false,
686
+ "axisColorMode": "text",
687
+ "axisLabel": "",
688
+ "axisPlacement": "auto",
689
+ "barAlignment": 0,
690
+ "drawStyle": "line",
691
+ "fillOpacity": 0,
692
+ "gradientMode": "none",
693
+ "hideFrom": {
694
+ "legend": false,
695
+ "tooltip": false,
696
+ "viz": false
697
+ },
698
+ "lineInterpolation": "linear",
699
+ "lineWidth": 1,
700
+ "pointSize": 5,
701
+ "scaleDistribution": {
702
+ "type": "linear"
703
+ },
704
+ "showPoints": "auto",
705
+ "spanNulls": false,
706
+ "stacking": {
707
+ "group": "A",
708
+ "mode": "none"
709
+ },
710
+ "thresholdsStyle": {
711
+ "mode": "off"
712
+ }
713
+ },
714
+ "mappings": [],
715
+ "thresholds": {
716
+ "mode": "absolute",
717
+ "steps": [
718
+ {
719
+ "color": "green"
720
+ },
721
+ {
722
+ "color": "red",
723
+ "value": 80
724
+ }
725
+ ]
726
+ }
727
+ },
728
+ "overrides": []
729
+ },
730
+ "gridPos": {
731
+ "h": 8,
732
+ "w": 12,
733
+ "x": 0,
734
+ "y": 34
735
+ },
736
+ "id": 4,
737
+ "options": {
738
+ "legend": {
739
+ "calcs": [],
740
+ "displayMode": "list",
741
+ "placement": "bottom",
742
+ "showLegend": true
743
+ },
744
+ "tooltip": {
745
+ "mode": "single",
746
+ "sort": "none"
747
+ }
748
+ },
749
+ "targets": [
750
+ {
751
+ "datasource": {
752
+ "type": "guance-guance-datasource",
753
+ "uid": "2270qUUNz"
754
+ },
755
+ "hide": true,
756
+ "queryText": "D::RE(`.*`):(count(`*`))",
757
+ "refId": "B",
758
+ "workspaceUUIDs": [
759
+ {
760
+ "label": "huangdong的测试空间",
761
+ "value": "wksp_aef7103dc5a44397a9f4d0442517a15e"
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "datasource": {
767
+ "type": "guance-guance-datasource",
768
+ "uid": "2270qUUNz"
769
+ },
770
+ "hide": true,
771
+ "queryText": "D::RE(`.*`):(count(`*`))",
772
+ "refId": "A",
773
+ "workspaceUUIDs": [
774
+ {
775
+ "label": "测试另一个【ScopeDB】开发测试一起用",
776
+ "value": "wksp_3e4be8bfca7f4149889b83805caf16c3"
777
+ }
778
+ ]
779
+ },
780
+ {
781
+ "datasource": {
782
+ "type": "guance-guance-datasource",
783
+ "uid": "2270qUUNz"
784
+ },
785
+ "hide": false,
786
+ "queryText": "M::`cpu`:(avg(`load5s`))",
787
+ "refId": "C",
788
+ "workspaceUUIDs": [
789
+ {
790
+ "label": "huangdong的测试空间",
791
+ "value": "wksp_aef7103dc5a44397a9f4d0442517a15e"
792
+ },
793
+ {
794
+ "label": "测试另一个【ScopeDB】开发测试一起用",
795
+ "value": "wksp_3e4be8bfca7f4149889b83805caf16c3"
796
+ }
797
+ ]
798
+ }
799
+ ],
800
+ "title": "Panel Title",
801
+ "type": "timeseries"
802
+ }
803
+ ],
804
+ "refresh": false,
805
+ "schemaVersion": 37,
806
+ "style": "dark",
807
+ "tags": [],
808
+ "templating": {
809
+ "list": [
810
+ {
811
+ "current": {
812
+ "selected": false,
813
+ "text": "iZuf6bhp22agaui9uldhz4Z",
814
+ "value": "iZuf6bhp22agaui9uldhz4Z"
815
+ },
816
+ "datasource": {
817
+ "type": "guance-guance-datasource",
818
+ "uid": "-HcExU8Hk"
819
+ },
820
+ "definition": "O::HOST:(distinct('host')){'os'='linux'}[10m]",
821
+ "hide": 0,
822
+ "includeAll": false,
823
+ "label": "hostABC",
824
+ "multi": false,
825
+ "name": "host",
826
+ "options": [],
827
+ "query": {
828
+ "qtype": "dql",
829
+ "rawQuery": "O::HOST:(distinct('host')){'os'='linux'}[10m]",
830
+ "workspaceUUIDs": []
831
+ },
832
+ "refresh": 1,
833
+ "regex": "",
834
+ "skipUrlSync": false,
835
+ "sort": 0,
836
+ "type": "query"
837
+ },
838
+ {
839
+ "current": {
840
+ "selected": false,
841
+ "text": "All",
842
+ "value": "$__all"
843
+ },
844
+ "datasource": {
845
+ "type": "guance-guance-datasource",
846
+ "uid": "-HcExU8Hk"
847
+ },
848
+ "definition": "label_values(cpu:load5s,host)",
849
+ "hide": 0,
850
+ "includeAll": true,
851
+ "label": "主机",
852
+ "multi": false,
853
+ "name": "var_host",
854
+ "options": [],
855
+ "query": {
856
+ "qtype": "promql",
857
+ "rawQuery": "label_values(cpu:load5s,host)",
858
+ "workspaceUUIDs": []
859
+ },
860
+ "refresh": 1,
861
+ "regex": "",
862
+ "skipUrlSync": false,
863
+ "sort": 0,
864
+ "type": "query"
865
+ }
866
+ ]
867
+ },
868
+ "time": {
869
+ "from": "now-6h",
870
+ "to": "now"
871
+ },
872
+ "timepicker": {},
873
+ "timezone": "",
874
+ "title": "test-0324 Copy1",
875
+ "uid": "prhbkx5Dk",
876
+ "version": 2,
877
+ "weekStart": ""
878
+ }