-
Notifications
You must be signed in to change notification settings - Fork 160
/
rows.libsonnet
84 lines (78 loc) · 2.3 KB
/
rows.libsonnet
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
local g = import './g.libsonnet';
local commonlib = import 'common-lib/common/main.libsonnet';
{
new(panels, type):: {
overview:
g.panel.row.new('JVM overview')
+ g.panel.row.withCollapsed(false)
+ g.panel.row.withPanels(
[
panels.memoryUsedHeapPercent { gridPos+: { w: 4, h: 4 } },
panels.memoryUsedNonHeapPercent { gridPos+: { w: 4, h: 4 } },
panels.threadsOverviewStat { gridPos+: { w: 4, h: 4 } },
panels.classesLoaded { gridPos+: { w: 4, h: 4 } },
]
),
gc:
g.panel.row.new('JVM garbage collection')
+ g.panel.row.withCollapsed(false)
+ g.panel.row.withPanels(
[
panels.memoryUsedEden,
panels.memoryUsedSurvival,
panels.memoryUsedTenured,
panels.gc,
panels.gcDuration,
panels.promotedAllocated,
]
),
memory:
g.panel.row.new('JVM memory')
+ g.panel.row.withCollapsed(false)
+ g.panel.row.withPanels(
[
panels.memoryUsedHeap { w: 12, h: 6 },
panels.memoryUsedNonHeap { w: 12, h: 6 },
]
),
threads:
g.panel.row.new('JVM threads')
+ g.panel.row.withCollapsed(false)
+ g.panel.row.withPanels(
[
panels.threadsOverviewTS,
panels.threadStates,
]
),
buffers:
g.panel.row.new('JVM buffers')
+ g.panel.row.withCollapsed(false)
+ g.panel.row.withPanels(
[
panels.directBuffer,
panels.mappedBuffer,
]
),
hikari:
g.panel.row.new('Hikari pools')
+ g.panel.row.withCollapsed(true)
+ g.panel.row.withPanels(
[
panels.hikariConnections { gridPos+: { w: 4, h: 6 } },
panels.hikariTimeouts { gridPos+: { w: 4, h: 6 } },
panels.hikariConnectionsStates { gridPos+: { w: 16, h: 6 } },
panels.hikariConnectionsCreate { gridPos+: { w: 8, h: 6 } },
panels.hikariConnectionsUsage { gridPos+: { w: 8, h: 6 } },
panels.hikariConnectionsAcquire { gridPos+: { w: 8, h: 6 } },
]
),
logback:
g.panel.row.new('Logback')
+ g.panel.row.withCollapsed(true)
+ g.panel.row.withPanels(
[
panels.logs { gridPos+: { w: 24, h: 6 } },
],
),
},
}