@xyo-network/sdk-js 2.102.5

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 (51) hide show
  1. package/LICENSE +165 -0
  2. package/README.md +94 -0
  3. package/dist/browser/index.cjs +26 -0
  4. package/dist/browser/index.cjs.map +1 -0
  5. package/dist/browser/index.d.cts +7 -0
  6. package/dist/browser/index.d.cts.map +1 -0
  7. package/dist/browser/index.d.mts +7 -0
  8. package/dist/browser/index.d.mts.map +1 -0
  9. package/dist/browser/index.d.ts +7 -0
  10. package/dist/browser/index.d.ts.map +1 -0
  11. package/dist/browser/index.js +8 -0
  12. package/dist/browser/index.js.map +1 -0
  13. package/dist/neutral/index.cjs +26 -0
  14. package/dist/neutral/index.cjs.map +1 -0
  15. package/dist/neutral/index.d.cts +7 -0
  16. package/dist/neutral/index.d.cts.map +1 -0
  17. package/dist/neutral/index.d.mts +7 -0
  18. package/dist/neutral/index.d.mts.map +1 -0
  19. package/dist/neutral/index.d.ts +7 -0
  20. package/dist/neutral/index.d.ts.map +1 -0
  21. package/dist/neutral/index.js +8 -0
  22. package/dist/neutral/index.js.map +1 -0
  23. package/dist/node/index.cjs +35 -0
  24. package/dist/node/index.cjs.map +1 -0
  25. package/dist/node/index.d.cts +7 -0
  26. package/dist/node/index.d.cts.map +1 -0
  27. package/dist/node/index.d.mts +7 -0
  28. package/dist/node/index.d.mts.map +1 -0
  29. package/dist/node/index.d.ts +7 -0
  30. package/dist/node/index.d.ts.map +1 -0
  31. package/dist/node/index.js +8 -0
  32. package/dist/node/index.js.map +1 -0
  33. package/docker/grafana/provisioning/dashboards/NodeJS Application Dashboard-11159.json +951 -0
  34. package/docker/grafana/provisioning/dashboards/Nodejs Metrics-11956.json +1759 -0
  35. package/docker/grafana/provisioning/dashboards/dashboard.yml +12 -0
  36. package/docker/grafana/provisioning/datasources/datasource.yml +11 -0
  37. package/docker/prometheus/prometheus.yml +14 -0
  38. package/docker-compose.metrics.yml +33 -0
  39. package/docker-compose.yml +62 -0
  40. package/jest.config.ts +31 -0
  41. package/jestSetup/globalSetup.ts +19 -0
  42. package/jestSetup/globalTeardown.ts +12 -0
  43. package/jestSetup/setupFiles.ts +10 -0
  44. package/package.json +126 -0
  45. package/scripts/clear-scrollback-buffer.sh +3 -0
  46. package/scripts/mongo/README.md +33 -0
  47. package/scripts/mongo/docker-entrypoint-initdb.d/00-create-key.sh +5 -0
  48. package/scripts/mongo/opt/mongo/joinReplicaSet.js +14 -0
  49. package/src/index.ts +7 -0
  50. package/test.log +11594 -0
  51. package/typedoc.json +14 -0
@@ -0,0 +1,951 @@
1
+ {
2
+ "annotations": {
3
+ "list": [
4
+ {
5
+ "builtIn": 1,
6
+ "datasource": {
7
+ "type": "datasource",
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
+ "description": "node.js prometheus client basic metrics",
25
+ "editable": true,
26
+ "fiscalYearStartMonth": 0,
27
+ "gnetId": 11159,
28
+ "graphTooltip": 0,
29
+ "id": 2,
30
+ "links": [],
31
+ "liveNow": false,
32
+ "panels": [
33
+ {
34
+ "aliasColors": {},
35
+ "bars": false,
36
+ "dashLength": 10,
37
+ "dashes": false,
38
+ "datasource": {
39
+ "type": "prometheus",
40
+ "uid": "PBFA97CFB590B2093"
41
+ },
42
+ "fill": 1,
43
+ "fillGradient": 0,
44
+ "gridPos": {
45
+ "h": 7,
46
+ "w": 10,
47
+ "x": 0,
48
+ "y": 0
49
+ },
50
+ "hiddenSeries": false,
51
+ "id": 6,
52
+ "legend": {
53
+ "alignAsTable": true,
54
+ "avg": true,
55
+ "current": true,
56
+ "max": true,
57
+ "min": true,
58
+ "show": true,
59
+ "total": false,
60
+ "values": true
61
+ },
62
+ "lines": true,
63
+ "linewidth": 1,
64
+ "links": [],
65
+ "nullPointMode": "null",
66
+ "options": {
67
+ "alertThreshold": true
68
+ },
69
+ "paceLength": 10,
70
+ "percentage": false,
71
+ "pluginVersion": "9.4.3",
72
+ "pointradius": 2,
73
+ "points": false,
74
+ "renderer": "flot",
75
+ "seriesOverrides": [],
76
+ "spaceLength": 10,
77
+ "stack": false,
78
+ "steppedLine": false,
79
+ "targets": [
80
+ {
81
+ "datasource": {
82
+ "type": "prometheus",
83
+ "uid": "PBFA97CFB590B2093"
84
+ },
85
+ "expr": "irate(process_cpu_user_seconds_total{instance=~\"$instance\"}[2m]) * 100",
86
+ "format": "time_series",
87
+ "intervalFactor": 1,
88
+ "legendFormat": "User CPU - {{instance}}",
89
+ "refId": "A"
90
+ },
91
+ {
92
+ "datasource": {
93
+ "type": "prometheus",
94
+ "uid": "PBFA97CFB590B2093"
95
+ },
96
+ "expr": "irate(process_cpu_system_seconds_total{instance=~\"$instance\"}[2m]) * 100",
97
+ "format": "time_series",
98
+ "intervalFactor": 1,
99
+ "legendFormat": "Sys CPU - {{instance}}",
100
+ "refId": "B"
101
+ }
102
+ ],
103
+ "thresholds": [],
104
+ "timeRegions": [],
105
+ "title": "Process CPU Usage",
106
+ "tooltip": {
107
+ "shared": true,
108
+ "sort": 0,
109
+ "value_type": "individual"
110
+ },
111
+ "type": "graph",
112
+ "xaxis": {
113
+ "mode": "time",
114
+ "show": true,
115
+ "values": []
116
+ },
117
+ "yaxes": [
118
+ {
119
+ "format": "percent",
120
+ "logBase": 1,
121
+ "show": true
122
+ },
123
+ {
124
+ "format": "short",
125
+ "logBase": 1,
126
+ "show": true
127
+ }
128
+ ],
129
+ "yaxis": {
130
+ "align": false
131
+ }
132
+ },
133
+ {
134
+ "aliasColors": {},
135
+ "bars": false,
136
+ "dashLength": 10,
137
+ "dashes": false,
138
+ "datasource": {
139
+ "type": "prometheus",
140
+ "uid": "PBFA97CFB590B2093"
141
+ },
142
+ "fill": 1,
143
+ "fillGradient": 0,
144
+ "gridPos": {
145
+ "h": 7,
146
+ "w": 9,
147
+ "x": 10,
148
+ "y": 0
149
+ },
150
+ "hiddenSeries": false,
151
+ "id": 8,
152
+ "legend": {
153
+ "alignAsTable": true,
154
+ "avg": true,
155
+ "current": true,
156
+ "max": true,
157
+ "min": true,
158
+ "show": true,
159
+ "total": false,
160
+ "values": true
161
+ },
162
+ "lines": true,
163
+ "linewidth": 1,
164
+ "links": [],
165
+ "nullPointMode": "null",
166
+ "options": {
167
+ "alertThreshold": true
168
+ },
169
+ "paceLength": 10,
170
+ "percentage": false,
171
+ "pluginVersion": "9.4.3",
172
+ "pointradius": 2,
173
+ "points": false,
174
+ "renderer": "flot",
175
+ "seriesOverrides": [],
176
+ "spaceLength": 10,
177
+ "stack": false,
178
+ "steppedLine": false,
179
+ "targets": [
180
+ {
181
+ "datasource": {
182
+ "type": "prometheus",
183
+ "uid": "PBFA97CFB590B2093"
184
+ },
185
+ "expr": "nodejs_eventloop_lag_seconds{instance=~\"$instance\"}",
186
+ "format": "time_series",
187
+ "intervalFactor": 1,
188
+ "legendFormat": "{{instance}}",
189
+ "refId": "A"
190
+ }
191
+ ],
192
+ "thresholds": [],
193
+ "timeRegions": [],
194
+ "title": "Event Loop Lag",
195
+ "tooltip": {
196
+ "shared": true,
197
+ "sort": 0,
198
+ "value_type": "individual"
199
+ },
200
+ "type": "graph",
201
+ "xaxis": {
202
+ "mode": "time",
203
+ "show": true,
204
+ "values": []
205
+ },
206
+ "yaxes": [
207
+ {
208
+ "format": "s",
209
+ "logBase": 1,
210
+ "show": true
211
+ },
212
+ {
213
+ "format": "short",
214
+ "logBase": 1,
215
+ "show": true
216
+ }
217
+ ],
218
+ "yaxis": {
219
+ "align": false
220
+ }
221
+ },
222
+ {
223
+ "datasource": {
224
+ "type": "prometheus",
225
+ "uid": "PBFA97CFB590B2093"
226
+ },
227
+ "fieldConfig": {
228
+ "defaults": {
229
+ "color": {
230
+ "mode": "thresholds"
231
+ },
232
+ "mappings": [
233
+ {
234
+ "options": {
235
+ "match": "null",
236
+ "result": {
237
+ "text": "N/A"
238
+ }
239
+ },
240
+ "type": "special"
241
+ }
242
+ ],
243
+ "thresholds": {
244
+ "mode": "absolute",
245
+ "steps": [
246
+ {
247
+ "color": "green",
248
+ "value": null
249
+ },
250
+ {
251
+ "color": "red",
252
+ "value": 80
253
+ }
254
+ ]
255
+ },
256
+ "unit": "none"
257
+ },
258
+ "overrides": []
259
+ },
260
+ "gridPos": {
261
+ "h": 3,
262
+ "w": 5,
263
+ "x": 19,
264
+ "y": 0
265
+ },
266
+ "id": 2,
267
+ "interval": "",
268
+ "links": [],
269
+ "maxDataPoints": 100,
270
+ "options": {
271
+ "colorMode": "none",
272
+ "graphMode": "none",
273
+ "justifyMode": "auto",
274
+ "orientation": "horizontal",
275
+ "reduceOptions": {
276
+ "calcs": [
277
+ "mean"
278
+ ],
279
+ "fields": "/^__name__$/",
280
+ "values": false
281
+ },
282
+ "textMode": "name"
283
+ },
284
+ "pluginVersion": "9.4.3",
285
+ "targets": [
286
+ {
287
+ "datasource": {
288
+ "type": "prometheus",
289
+ "uid": "PBFA97CFB590B2093"
290
+ },
291
+ "expr": "sum(nodejs_version_info{instance=~\"$instance\"}) by (version)",
292
+ "format": "time_series",
293
+ "instant": false,
294
+ "interval": "",
295
+ "intervalFactor": 1,
296
+ "legendFormat": "{{version}}",
297
+ "refId": "A"
298
+ }
299
+ ],
300
+ "title": "Node.js Version",
301
+ "type": "stat"
302
+ },
303
+ {
304
+ "datasource": {
305
+ "type": "prometheus",
306
+ "uid": "PBFA97CFB590B2093"
307
+ },
308
+ "fieldConfig": {
309
+ "defaults": {
310
+ "color": {
311
+ "fixedColor": "#F2495C",
312
+ "mode": "fixed"
313
+ },
314
+ "mappings": [
315
+ {
316
+ "options": {
317
+ "match": "null",
318
+ "result": {
319
+ "text": "N/A"
320
+ }
321
+ },
322
+ "type": "special"
323
+ }
324
+ ],
325
+ "thresholds": {
326
+ "mode": "absolute",
327
+ "steps": [
328
+ {
329
+ "color": "green",
330
+ "value": null
331
+ },
332
+ {
333
+ "color": "red",
334
+ "value": 80
335
+ }
336
+ ]
337
+ },
338
+ "unit": "none"
339
+ },
340
+ "overrides": []
341
+ },
342
+ "gridPos": {
343
+ "h": 4,
344
+ "w": 5,
345
+ "x": 19,
346
+ "y": 3
347
+ },
348
+ "id": 4,
349
+ "links": [],
350
+ "maxDataPoints": 100,
351
+ "options": {
352
+ "colorMode": "none",
353
+ "graphMode": "area",
354
+ "justifyMode": "auto",
355
+ "orientation": "horizontal",
356
+ "reduceOptions": {
357
+ "calcs": [
358
+ "lastNotNull"
359
+ ],
360
+ "fields": "",
361
+ "values": false
362
+ },
363
+ "textMode": "auto"
364
+ },
365
+ "pluginVersion": "9.4.3",
366
+ "targets": [
367
+ {
368
+ "datasource": {
369
+ "type": "prometheus",
370
+ "uid": "PBFA97CFB590B2093"
371
+ },
372
+ "expr": "sum(changes(process_start_time_seconds{instance=~\"$instance\"}[1m]))",
373
+ "format": "time_series",
374
+ "intervalFactor": 1,
375
+ "legendFormat": "{{instance}}",
376
+ "refId": "A"
377
+ }
378
+ ],
379
+ "title": "Process Restart Times",
380
+ "type": "stat"
381
+ },
382
+ {
383
+ "aliasColors": {},
384
+ "bars": false,
385
+ "dashLength": 10,
386
+ "dashes": false,
387
+ "datasource": {
388
+ "type": "prometheus",
389
+ "uid": "PBFA97CFB590B2093"
390
+ },
391
+ "fill": 1,
392
+ "fillGradient": 0,
393
+ "gridPos": {
394
+ "h": 7,
395
+ "w": 16,
396
+ "x": 0,
397
+ "y": 7
398
+ },
399
+ "hiddenSeries": false,
400
+ "id": 7,
401
+ "legend": {
402
+ "alignAsTable": true,
403
+ "avg": true,
404
+ "current": true,
405
+ "max": true,
406
+ "min": true,
407
+ "rightSide": true,
408
+ "show": true,
409
+ "total": false,
410
+ "values": true
411
+ },
412
+ "lines": true,
413
+ "linewidth": 1,
414
+ "links": [],
415
+ "nullPointMode": "null",
416
+ "options": {
417
+ "alertThreshold": true
418
+ },
419
+ "paceLength": 10,
420
+ "percentage": false,
421
+ "pluginVersion": "9.4.3",
422
+ "pointradius": 2,
423
+ "points": false,
424
+ "renderer": "flot",
425
+ "seriesOverrides": [],
426
+ "spaceLength": 10,
427
+ "stack": false,
428
+ "steppedLine": false,
429
+ "targets": [
430
+ {
431
+ "datasource": {
432
+ "type": "prometheus",
433
+ "uid": "PBFA97CFB590B2093"
434
+ },
435
+ "expr": "process_resident_memory_bytes{instance=~\"$instance\"}",
436
+ "format": "time_series",
437
+ "intervalFactor": 1,
438
+ "legendFormat": "Process Memory - {{instance}}",
439
+ "refId": "A"
440
+ },
441
+ {
442
+ "datasource": {
443
+ "type": "prometheus",
444
+ "uid": "PBFA97CFB590B2093"
445
+ },
446
+ "expr": "nodejs_heap_size_total_bytes{instance=~\"$instance\"}",
447
+ "format": "time_series",
448
+ "intervalFactor": 1,
449
+ "legendFormat": "Heap Total - {{instance}}",
450
+ "refId": "B"
451
+ },
452
+ {
453
+ "datasource": {
454
+ "type": "prometheus",
455
+ "uid": "PBFA97CFB590B2093"
456
+ },
457
+ "expr": "nodejs_heap_size_used_bytes{instance=~\"$instance\"}",
458
+ "format": "time_series",
459
+ "intervalFactor": 1,
460
+ "legendFormat": "Heap Used - {{instance}}",
461
+ "refId": "C"
462
+ },
463
+ {
464
+ "datasource": {
465
+ "type": "prometheus",
466
+ "uid": "PBFA97CFB590B2093"
467
+ },
468
+ "expr": "nodejs_external_memory_bytes{instance=~\"$instance\"}",
469
+ "format": "time_series",
470
+ "intervalFactor": 1,
471
+ "legendFormat": "External Memory - {{instance}}",
472
+ "refId": "D"
473
+ }
474
+ ],
475
+ "thresholds": [],
476
+ "timeRegions": [],
477
+ "title": "Process Memory Usage",
478
+ "tooltip": {
479
+ "shared": true,
480
+ "sort": 0,
481
+ "value_type": "individual"
482
+ },
483
+ "type": "graph",
484
+ "xaxis": {
485
+ "mode": "time",
486
+ "show": true,
487
+ "values": []
488
+ },
489
+ "yaxes": [
490
+ {
491
+ "format": "bytes",
492
+ "logBase": 1,
493
+ "show": true
494
+ },
495
+ {
496
+ "format": "short",
497
+ "logBase": 1,
498
+ "show": true
499
+ }
500
+ ],
501
+ "yaxis": {
502
+ "align": false
503
+ }
504
+ },
505
+ {
506
+ "aliasColors": {},
507
+ "bars": false,
508
+ "dashLength": 10,
509
+ "dashes": false,
510
+ "datasource": {
511
+ "type": "prometheus",
512
+ "uid": "PBFA97CFB590B2093"
513
+ },
514
+ "fill": 1,
515
+ "fillGradient": 0,
516
+ "gridPos": {
517
+ "h": 7,
518
+ "w": 8,
519
+ "x": 16,
520
+ "y": 7
521
+ },
522
+ "hiddenSeries": false,
523
+ "id": 9,
524
+ "legend": {
525
+ "alignAsTable": true,
526
+ "avg": true,
527
+ "current": true,
528
+ "max": true,
529
+ "min": true,
530
+ "show": true,
531
+ "total": false,
532
+ "values": true
533
+ },
534
+ "lines": true,
535
+ "linewidth": 1,
536
+ "links": [],
537
+ "nullPointMode": "null",
538
+ "options": {
539
+ "alertThreshold": true
540
+ },
541
+ "paceLength": 10,
542
+ "percentage": false,
543
+ "pluginVersion": "9.4.3",
544
+ "pointradius": 2,
545
+ "points": false,
546
+ "renderer": "flot",
547
+ "seriesOverrides": [],
548
+ "spaceLength": 10,
549
+ "stack": false,
550
+ "steppedLine": false,
551
+ "targets": [
552
+ {
553
+ "datasource": {
554
+ "type": "prometheus",
555
+ "uid": "PBFA97CFB590B2093"
556
+ },
557
+ "expr": "nodejs_active_handles_total{instance=~\"$instance\"}",
558
+ "format": "time_series",
559
+ "intervalFactor": 1,
560
+ "legendFormat": "Active Handler - {{instance}}",
561
+ "refId": "A"
562
+ },
563
+ {
564
+ "datasource": {
565
+ "type": "prometheus",
566
+ "uid": "PBFA97CFB590B2093"
567
+ },
568
+ "expr": "nodejs_active_requests_total{instance=~\"$instance\"}",
569
+ "format": "time_series",
570
+ "intervalFactor": 1,
571
+ "legendFormat": "Active Request - {{instance}}",
572
+ "refId": "B"
573
+ }
574
+ ],
575
+ "thresholds": [],
576
+ "timeRegions": [],
577
+ "title": "Active Handlers/Requests Total",
578
+ "tooltip": {
579
+ "shared": true,
580
+ "sort": 0,
581
+ "value_type": "individual"
582
+ },
583
+ "type": "graph",
584
+ "xaxis": {
585
+ "mode": "time",
586
+ "show": true,
587
+ "values": []
588
+ },
589
+ "yaxes": [
590
+ {
591
+ "format": "short",
592
+ "logBase": 1,
593
+ "show": true
594
+ },
595
+ {
596
+ "format": "short",
597
+ "logBase": 1,
598
+ "show": true
599
+ }
600
+ ],
601
+ "yaxis": {
602
+ "align": false
603
+ }
604
+ },
605
+ {
606
+ "aliasColors": {},
607
+ "bars": false,
608
+ "dashLength": 10,
609
+ "dashes": false,
610
+ "datasource": {
611
+ "type": "prometheus",
612
+ "uid": "PBFA97CFB590B2093"
613
+ },
614
+ "fill": 1,
615
+ "fillGradient": 0,
616
+ "gridPos": {
617
+ "h": 8,
618
+ "w": 8,
619
+ "x": 0,
620
+ "y": 14
621
+ },
622
+ "hiddenSeries": false,
623
+ "id": 10,
624
+ "legend": {
625
+ "alignAsTable": true,
626
+ "avg": true,
627
+ "current": true,
628
+ "max": true,
629
+ "min": true,
630
+ "rightSide": false,
631
+ "show": true,
632
+ "total": false,
633
+ "values": true
634
+ },
635
+ "lines": true,
636
+ "linewidth": 1,
637
+ "links": [],
638
+ "nullPointMode": "null",
639
+ "options": {
640
+ "alertThreshold": true
641
+ },
642
+ "paceLength": 10,
643
+ "percentage": false,
644
+ "pluginVersion": "9.4.3",
645
+ "pointradius": 2,
646
+ "points": false,
647
+ "renderer": "flot",
648
+ "seriesOverrides": [],
649
+ "spaceLength": 10,
650
+ "stack": false,
651
+ "steppedLine": false,
652
+ "targets": [
653
+ {
654
+ "datasource": {
655
+ "type": "prometheus",
656
+ "uid": "PBFA97CFB590B2093"
657
+ },
658
+ "expr": "nodejs_heap_space_size_total_bytes{instance=~\"$instance\"}",
659
+ "format": "time_series",
660
+ "intervalFactor": 1,
661
+ "legendFormat": "Heap Total - {{instance}} - {{space}}",
662
+ "refId": "A"
663
+ }
664
+ ],
665
+ "thresholds": [],
666
+ "timeRegions": [],
667
+ "title": "Heap Total Detail",
668
+ "tooltip": {
669
+ "shared": true,
670
+ "sort": 0,
671
+ "value_type": "individual"
672
+ },
673
+ "type": "graph",
674
+ "xaxis": {
675
+ "mode": "time",
676
+ "show": true,
677
+ "values": []
678
+ },
679
+ "yaxes": [
680
+ {
681
+ "format": "bytes",
682
+ "logBase": 1,
683
+ "show": true
684
+ },
685
+ {
686
+ "format": "short",
687
+ "logBase": 1,
688
+ "show": true
689
+ }
690
+ ],
691
+ "yaxis": {
692
+ "align": false
693
+ }
694
+ },
695
+ {
696
+ "aliasColors": {},
697
+ "bars": false,
698
+ "dashLength": 10,
699
+ "dashes": false,
700
+ "datasource": {
701
+ "type": "prometheus",
702
+ "uid": "PBFA97CFB590B2093"
703
+ },
704
+ "fill": 1,
705
+ "fillGradient": 0,
706
+ "gridPos": {
707
+ "h": 8,
708
+ "w": 8,
709
+ "x": 8,
710
+ "y": 14
711
+ },
712
+ "hiddenSeries": false,
713
+ "id": 11,
714
+ "legend": {
715
+ "alignAsTable": true,
716
+ "avg": true,
717
+ "current": true,
718
+ "max": true,
719
+ "min": true,
720
+ "rightSide": false,
721
+ "show": true,
722
+ "total": false,
723
+ "values": true
724
+ },
725
+ "lines": true,
726
+ "linewidth": 1,
727
+ "links": [],
728
+ "nullPointMode": "null",
729
+ "options": {
730
+ "alertThreshold": true
731
+ },
732
+ "paceLength": 10,
733
+ "percentage": false,
734
+ "pluginVersion": "9.4.3",
735
+ "pointradius": 2,
736
+ "points": false,
737
+ "renderer": "flot",
738
+ "seriesOverrides": [],
739
+ "spaceLength": 10,
740
+ "stack": false,
741
+ "steppedLine": false,
742
+ "targets": [
743
+ {
744
+ "datasource": {
745
+ "type": "prometheus",
746
+ "uid": "PBFA97CFB590B2093"
747
+ },
748
+ "expr": "nodejs_heap_space_size_used_bytes{instance=~\"$instance\"}",
749
+ "format": "time_series",
750
+ "intervalFactor": 1,
751
+ "legendFormat": "Heap Used - {{instance}} - {{space}}",
752
+ "refId": "A"
753
+ }
754
+ ],
755
+ "thresholds": [],
756
+ "timeRegions": [],
757
+ "title": "Heap Used Detail",
758
+ "tooltip": {
759
+ "shared": true,
760
+ "sort": 0,
761
+ "value_type": "individual"
762
+ },
763
+ "type": "graph",
764
+ "xaxis": {
765
+ "mode": "time",
766
+ "show": true,
767
+ "values": []
768
+ },
769
+ "yaxes": [
770
+ {
771
+ "format": "bytes",
772
+ "logBase": 1,
773
+ "show": true
774
+ },
775
+ {
776
+ "format": "short",
777
+ "logBase": 1,
778
+ "show": true
779
+ }
780
+ ],
781
+ "yaxis": {
782
+ "align": false
783
+ }
784
+ },
785
+ {
786
+ "aliasColors": {},
787
+ "bars": false,
788
+ "dashLength": 10,
789
+ "dashes": false,
790
+ "datasource": {
791
+ "type": "prometheus",
792
+ "uid": "PBFA97CFB590B2093"
793
+ },
794
+ "fill": 1,
795
+ "fillGradient": 0,
796
+ "gridPos": {
797
+ "h": 8,
798
+ "w": 8,
799
+ "x": 16,
800
+ "y": 14
801
+ },
802
+ "hiddenSeries": false,
803
+ "id": 12,
804
+ "legend": {
805
+ "alignAsTable": true,
806
+ "avg": true,
807
+ "current": true,
808
+ "max": true,
809
+ "min": true,
810
+ "rightSide": false,
811
+ "show": true,
812
+ "total": false,
813
+ "values": true
814
+ },
815
+ "lines": true,
816
+ "linewidth": 1,
817
+ "links": [],
818
+ "nullPointMode": "null",
819
+ "options": {
820
+ "alertThreshold": true
821
+ },
822
+ "paceLength": 10,
823
+ "percentage": false,
824
+ "pluginVersion": "9.4.3",
825
+ "pointradius": 2,
826
+ "points": false,
827
+ "renderer": "flot",
828
+ "seriesOverrides": [],
829
+ "spaceLength": 10,
830
+ "stack": false,
831
+ "steppedLine": false,
832
+ "targets": [
833
+ {
834
+ "datasource": {
835
+ "type": "prometheus",
836
+ "uid": "PBFA97CFB590B2093"
837
+ },
838
+ "expr": "nodejs_heap_space_size_available_bytes{instance=~\"$instance\"}",
839
+ "format": "time_series",
840
+ "intervalFactor": 1,
841
+ "legendFormat": "Heap Used - {{instance}} - {{space}}",
842
+ "refId": "A"
843
+ }
844
+ ],
845
+ "thresholds": [],
846
+ "timeRegions": [],
847
+ "title": "Heap Available Detail",
848
+ "tooltip": {
849
+ "shared": true,
850
+ "sort": 0,
851
+ "value_type": "individual"
852
+ },
853
+ "type": "graph",
854
+ "xaxis": {
855
+ "mode": "time",
856
+ "show": true,
857
+ "values": []
858
+ },
859
+ "yaxes": [
860
+ {
861
+ "format": "bytes",
862
+ "logBase": 1,
863
+ "show": true
864
+ },
865
+ {
866
+ "format": "short",
867
+ "logBase": 1,
868
+ "show": true
869
+ }
870
+ ],
871
+ "yaxis": {
872
+ "align": false
873
+ }
874
+ }
875
+ ],
876
+ "refresh": "",
877
+ "revision": 1,
878
+ "schemaVersion": 38,
879
+ "style": "dark",
880
+ "tags": [
881
+ "nodejs"
882
+ ],
883
+ "templating": {
884
+ "list": [
885
+ {
886
+ "current": {
887
+ "selected": false,
888
+ "text": "All",
889
+ "value": "$__all"
890
+ },
891
+ "datasource": {
892
+ "type": "prometheus",
893
+ "uid": "PBFA97CFB590B2093"
894
+ },
895
+ "definition": "label_values(nodejs_version_info, instance)",
896
+ "hide": 0,
897
+ "includeAll": true,
898
+ "label": "instance",
899
+ "multi": true,
900
+ "name": "instance",
901
+ "options": [],
902
+ "query": {
903
+ "query": "label_values(nodejs_version_info, instance)",
904
+ "refId": "Prometheus-instance-Variable-Query"
905
+ },
906
+ "refresh": 1,
907
+ "regex": "",
908
+ "skipUrlSync": false,
909
+ "sort": 1,
910
+ "tagValuesQuery": "",
911
+ "tagsQuery": "",
912
+ "type": "query",
913
+ "useTags": false
914
+ }
915
+ ]
916
+ },
917
+ "time": {
918
+ "from": "now-1h",
919
+ "to": "now"
920
+ },
921
+ "timepicker": {
922
+ "refresh_intervals": [
923
+ "5s",
924
+ "10s",
925
+ "30s",
926
+ "1m",
927
+ "5m",
928
+ "15m",
929
+ "30m",
930
+ "1h",
931
+ "2h",
932
+ "1d"
933
+ ],
934
+ "time_options": [
935
+ "5m",
936
+ "15m",
937
+ "1h",
938
+ "6h",
939
+ "12h",
940
+ "24h",
941
+ "2d",
942
+ "7d",
943
+ "30d"
944
+ ]
945
+ },
946
+ "timezone": "",
947
+ "title": "NodeJS Application Dashboard",
948
+ "uid": "PTSqcpJWk",
949
+ "version": 1,
950
+ "weekStart": ""
951
+ }