-
Notifications
You must be signed in to change notification settings - Fork 158
/
micrometer.yml
executable file
·1415 lines (1398 loc) · 50 KB
/
micrometer.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
apiVersion: influxdata.com/v2alpha1
kind: Label
metadata:
name: stubborn-archimedes-84e003
spec:
color: '#009f5f'
name: ingress-nginx
---
apiVersion: influxdata.com/v2alpha1
kind: Bucket
metadata:
name: realistic-dirac-84e001
spec:
name: jvm_micrometer
retentionRules:
- everySeconds: 2.592e+06
type: expire
---
apiVersion: influxdata.com/v2alpha1
kind: Variable
metadata:
name: hungry-murdock-84e005
spec:
associations:
- kind: Label
name: stubborn-archimedes-84e003
language: flux
name: bucket
query: |-
buckets()
|> filter(fn: (r) => r.name !~ /^_/)
|> rename(columns: {name: "_value"})
|> keep(columns: ["_value"])
selected:
- demo
type: query
---
apiVersion: influxdata.com/v2alpha1
kind: Dashboard
metadata:
name: cool-meninsky-44e001
spec:
charts:
- height: 1
kind: Markdown
name: Name this Cell
note: '## Quick facts'
staticLegend: {}
width: 9
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 2
height: 2
kind: Single_Stat
name: Start time
queries:
- query: "import \"date\"\nimport \"math\"\n\nfrom(bucket: v.bucket)\n |>
range(start: v.timeRangeStart, stop: v.timeRangeStop)\n |> filter(fn:
(r) => r[\"_measurement\"] == \"process_start_time\")\n |> filter(fn:
(r) => r[\"_field\"] == \"value\")\n |> last()\n |> toInt()\n |>
map(fn: (r) => ({r with _value: time(v: r._value * 1000000)}))\n |>
map(fn: (r) => ({\n r with\n _value:
\n if \n date.year(t:
now()) != date.year(t: r._value) or\n date.month(t:
now()) != date.month(t: r._value) or\n date.monthDay(t:
now()) != date.monthDay(t: r._value)\n then\n
\ string(v: date.year(t: r._value)) + \"/\"
+\n string(v: date.month(t: r._value)) +
\"/\" +\n string(v: date.monthDay(t: r._value))
+ \" \" +\n string(v: date.hour(t: r._value))
+ \":\" +\n string(v: date.minute(t: r._value))
+ \":\" +\n string(v: date.second(t: r._value))
+ \" GMT\"\n else\n string(v:
date.hour(t: r._value)) + \":\" +\n string(v:
date.minute(t: r._value)) + \":\" +\n string(v:
date.second(t: r._value)) + \" GMT\" \n })\n )\n
\ |> yield(name: \"Start time\")"
staticLegend: {}
width: 3
yPos: 1
- height: 1
kind: Markdown
name: Name this Cell (Clone)
note: '## IO Overview'
staticLegend: {}
width: 9
yPos: 3
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: b14edd3e-51ff-4f71-b4fe-c8df83ce7449
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 4ae7e4a0-37de-44f1-a81e-0003018379d5
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: ca1a2d73-538e-43c2-b2f8-f180df58450e
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Rate
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "http_server_requests")
|> filter(fn: (r) => r["_field"] == "count")
|> group()
|> aggregateWindow(every: 1m, fn: sum, createEmpty: false)
|> yield(name: "Rate")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
yCol: _value
yPos: 4
- height: 1
kind: Markdown
name: Name this Cell
note: '## JVM Memory'
staticLegend: {}
width: 9
yPos: 7
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
suffix: ' MiB'
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 1c994235-580a-4299-97aa-2786b705bd63
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: ac034c11-c1e8-4b9f-992b-fd2153ead0c3
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 818b066c-bc5b-4552-83cc-a4f6e152ea99
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: JVM Heap
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_memory_used")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["area"] == "heap")
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> group(columns: ["_time", "_measurement"])
|> sum()
|> map(fn: (r) => ({ _time: r._time, _value: r._value / 1024. / 1024. }))
|> group()
|> yield(name: "memory_used")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_memory_max")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["area"] == "heap")
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> group(columns: ["_time", "_measurement"])
|> sum()
|> map(fn: (r) => ({ _time: r._time, _value: r._value / 1024. / 1024. }))
|> group()
|> yield(name: "memory_max")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_memory_committed")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["area"] == "heap")
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> group(columns: ["_time", "_measurement"])
|> sum()
|> map(fn: (r) => ({ _time: r._time, _value: r._value / 1024. / 1024. }))
|> group()
|> yield(name: "memory_committed")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
yCol: _value
yPos: 8
- height: 1
kind: Markdown
name: Name this Cell
note: '## JVM Misc'
staticLegend: {}
width: 9
yPos: 11
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
suffix: '%'
colorizeRows: true
colors:
- hex: '#31C0F6'
id: b14edd3e-51ff-4f71-b4fe-c8df83ce7449
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 4ae7e4a0-37de-44f1-a81e-0003018379d5
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: ca1a2d73-538e-43c2-b2f8-f180df58450e
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: CPU
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
windowSize = 5s
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "system_cpu_usage")
|> aggregateWindow(every: windowSize, fn: last, createEmpty: false)
|> map(fn: (r) => ({ _time: r._time, _value: r._value * 100.}))
|> yield(name: "System CPU")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "process_cpu_usage")
|> aggregateWindow(every: windowSize, fn: last, createEmpty: false)
|> map(fn: (r) => ({ _time: r._time, _value: r._value * 100.}))
|> yield(name: "Process CPU")
// from(bucket: v.bucket)
// |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
// |> filter(fn: (r) => r["_measurement"] == "process_cpu_usage")
// |> aggregateWindow(every: 1h, fn: mean, createEmpty: false)
// |> map(fn: (r) => ({ _time: r._time, _value: r._value * 100.}))
// |> yield(name: "Process-1h CPU")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
yCol: _value
yPos: 12
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: b14edd3e-51ff-4f71-b4fe-c8df83ce7449
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 4ae7e4a0-37de-44f1-a81e-0003018379d5
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: ca1a2d73-538e-43c2-b2f8-f180df58450e
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Thread States
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_threads_states")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
yCol: _value
yPos: 15
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 37d4d61c-0426-4951-bed6-b71d4a0813ae
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 065947f8-05d9-4622-9039-de1a2d47c6b7
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: ea69d63a-49fe-44d4-a54a-5d7d860bb262
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: File Descriptors
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "process_files_open")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false)
|> yield(name: "Open")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "process_files_max")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: v.windowPeriod, fn: max, createEmpty: false)
|> yield(name: "Max")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
yCol: _value
yPos: 18
- height: 1
kind: Markdown
name: Name this Cell
note: '## Garbage Collection'
staticLegend: {}
width: 9
yPos: 21
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 56803234-b421-44f0-8402-b9c46c8a4b8f
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 169c0d68-f74e-455e-9f40-b73ea2ca7a4d
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 355fa36e-fcb5-4c4b-962c-dd57a34a84df
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Collections
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_gc_pause")
|> filter(fn: (r) => r["_field"] == "count")
|> group(columns: ["_measurement", "action"])
|> aggregateWindow(every: 1m, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
yCol: _value
yPos: 22
- height: 1
kind: Markdown
name: Name this Cell
note: '## Classloading'
staticLegend: {}
width: 9
yPos: 25
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 56803234-b421-44f0-8402-b9c46c8a4b8f
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 169c0d68-f74e-455e-9f40-b73ea2ca7a4d
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 355fa36e-fcb5-4c4b-962c-dd57a34a84df
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Classes loaded
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_classes_loaded")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)
|> yield(name: "mean")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 5
widthRatio: 1
xCol: _time
yCol: _value
yPos: 26
- height: 1
kind: Markdown
name: Name this Cell
note: '## Buffer Pools'
staticLegend: {}
width: 9
yPos: 29
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
label: KiB
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 56803234-b421-44f0-8402-b9c46c8a4b8f
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 169c0d68-f74e-455e-9f40-b73ea2ca7a4d
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 355fa36e-fcb5-4c4b-962c-dd57a34a84df
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Direct Buffers
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_buffer_memory_used")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["id"] == "direct")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> map(fn: (r) => ({r with _value: r._value / 1024. }))
|> yield(name: "Used")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_buffer_total_capacity")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["id"] == "direct")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> map(fn: (r) => ({r with _value: r._value / 1024. }))
|> yield(name: "Capacity")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 4
widthRatio: 1
xCol: _time
yCol: _value
yPos: 30
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
label: KiB
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 56803234-b421-44f0-8402-b9c46c8a4b8f
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 169c0d68-f74e-455e-9f40-b73ea2ca7a4d
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 355fa36e-fcb5-4c4b-962c-dd57a34a84df
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Mapped Buffers
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_buffer_memory_used")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["id"] == "mapped")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> map(fn: (r) => ({r with _value: r._value / 1024. }))
|> yield(name: "Used")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_buffer_total_capacity")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["id"] == "mapped")
|> aggregateWindow(every: v.windowPeriod, fn: last, createEmpty: false)
|> map(fn: (r) => ({r with _value: r._value / 1024. }))
|> yield(name: "Capacity")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 4
widthRatio: 1
xCol: _time
yCol: _value
yPos: 33
- colors:
- hex: '#00C9FF'
id: base
name: laser
type: text
decimalPlaces: 2
height: 2
kind: Single_Stat
name: Uptime
queries:
- query: "import \"math\"\n\nfrom(bucket: v.bucket)\n |> range(start: v.timeRangeStart,
stop: v.timeRangeStop)\n |> filter(fn: (r) => r[\"_measurement\"]
== \"process_uptime\")\n |> filter(fn: (r) => r[\"_field\"] == \"value\")\n
\ |> last()\n |> map(fn: (r) => ({_value: r._value / 1000.}))\n |>
map(fn: (r) => \n ({\n _value: \n if r._value < 60.
then string(v: r._value) + \" sec\"\n else if r._value < (60
* 60) then string(v: math.ceil(x: r._value / 60.)) + \" min.\"\n else
if r._value < (60 * 60 * 24) then string(v: math.ceil(x: r._value
/ 60. / 60.)) + \" hour(s)\"\n else string(v: math.ceil(x:
r._value / 60. / 60. / 24.)) + \" day(s)\"\n })\n )\n |> yield(name:
\"Uptime\")"
staticLegend: {}
width: 2
xPos: 3
yPos: 1
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#DC4E58'
id: 75c2a64d-3ac9-4882-b057-dc1ce18e676c
name: Solid Red
type: scale
- hex: '#DC4E58'
id: 019e7113-007a-4c60-a7fa-cf3c84157487
name: Solid Red
type: scale
- hex: '#DC4E58'
id: 1e0bf4df-e3d0-4180-ad2d-87417c2eceb5
name: Solid Red
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Errors
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "http_server_requests")
|> filter(fn: (r) => r["status"] =~ /5../)
|> filter(fn: (r) => r["_field"] == "count")
|> aggregateWindow(every: 1m, fn: sum, createEmpty: false)
|> yield(name: "HTTP Errors")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
xPos: 3
yCol: _value
yPos: 4
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
suffix: ' MiB'
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 1c994235-580a-4299-97aa-2786b705bd63
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: ac034c11-c1e8-4b9f-992b-fd2153ead0c3
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 818b066c-bc5b-4552-83cc-a4f6e152ea99
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
heightRatio: 0.14599236641221375
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: JVM Non-Heap
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_memory_used")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["area"] == "nonheap")
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> group(columns: ["_time", "_measurement"])
|> sum()
|> map(fn: (r) => ({ _time: r._time, _value: r._value / 1024. / 1024. }))
|> group()
|> yield(name: "memory_used")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_memory_max")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["area"] == "nonheap")
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> group(columns: ["_time", "_measurement"])
|> sum()
|> map(fn: (r) => ({ _time: r._time, _value: r._value / 1024. / 1024. }))
|> group()
|> yield(name: "memory_max")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_memory_committed")
|> filter(fn: (r) => r["_field"] == "value")
|> filter(fn: (r) => r["area"] == "nonheap")
|> aggregateWindow(every: 5s, fn: mean, createEmpty: false)
|> group(columns: ["_time", "_measurement"])
|> sum()
|> map(fn: (r) => ({ _time: r._time, _value: r._value / 1024. / 1024. }))
|> group()
|> yield(name: "memory_committed")
staticLegend:
colorizeRows: true
heightRatio: 0.14599236641221375
opacity: 1
orientationThreshold: 1e+08
valueAxis: "y"
widthRatio: 1
valueAxis: "y"
width: 3
widthRatio: 1
xCol: _time
xPos: 3
yCol: _value
yPos: 8
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: b14edd3e-51ff-4f71-b4fe-c8df83ce7449
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 4ae7e4a0-37de-44f1-a81e-0003018379d5
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: ca1a2d73-538e-43c2-b2f8-f180df58450e
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Load
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
windowSize = 5s
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "system_load_average_1m")
|> aggregateWindow(every: windowSize, fn: mean, createEmpty: false)
|> yield(name: "System-1m")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "system_cpu_count")
|> aggregateWindow(every: windowSize, fn: mean, createEmpty: false)
|> yield(name: "CPU")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
xPos: 3
yCol: _value
yPos: 12
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 37d4d61c-0426-4951-bed6-b71d4a0813ae
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 065947f8-05d9-4622-9039-de1a2d47c6b7
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: ea69d63a-49fe-44d4-a54a-5d7d860bb262
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Log events (1m)
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "logback_events")
|> filter(fn: (r) => r["_field"] == "value")
|> group(columns: ["level"])
|> aggregateWindow(every: 1m, fn: sum, createEmpty: false)
|> yield(name: "sum")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 6
widthRatio: 1
xCol: _time
xPos: 3
yCol: _value
yPos: 15
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 56803234-b421-44f0-8402-b9c46c8a4b8f
name: Nineteen Eighty Four
type: scale
- hex: '#A500A5'
id: 169c0d68-f74e-455e-9f40-b73ea2ca7a4d
name: Nineteen Eighty Four
type: scale
- hex: '#FF7E27'
id: 355fa36e-fcb5-4c4b-962c-dd57a34a84df
name: Nineteen Eighty Four
type: scale
geom: line
height: 3
hoverDimension: auto
kind: Xy
legendColorizeRows: true
legendOpacity: 1
legendOrientationThreshold: 1e+08
name: Allocated/Promoted
opacity: 1
orientationThreshold: 1e+08
position: overlaid
queries:
- query: |-
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_gc_memory_allocated")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: 1m, fn: mean, createEmpty: false)
|> map(fn: (r) => ({r with _value: r._value / 1024. / 1024.}))
|> yield(name: "Allocated")
from(bucket: v.bucket)
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "jvm_gc_memory_promoted")
|> filter(fn: (r) => r["_field"] == "value")
|> aggregateWindow(every: 1m, fn: mean, createEmpty: false)
|> map(fn: (r) => ({r with _value: r._value / 1024. / 1024.}))
|> yield(name: "Promoted")
staticLegend:
colorizeRows: true
opacity: 1
orientationThreshold: 1e+08
widthRatio: 1
width: 3
widthRatio: 1
xCol: _time
xPos: 3
yCol: _value
yPos: 22
- axes:
- base: "10"
name: x
scale: linear
- base: "10"
name: "y"
scale: linear
colorizeRows: true
colors:
- hex: '#31C0F6'
id: 56803234-b421-44f0-8402-b9c46c8a4b8f
name: Nineteen Eighty Four
type: scale