-
Notifications
You must be signed in to change notification settings - Fork 163
/
panels.libsonnet
36 lines (31 loc) · 1.22 KB
/
panels.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
local g = import './g.libsonnet';
local commonlib = import 'common-lib/common/main.libsonnet';
{
new(signals):
{
uptime:
signals.process.uptime.asStat()
+ commonlib.panels.system.stat.uptime.stylize(),
startTime:
signals.process.startTime.asStat()
+ commonlib.panels.generic.stat.info.stylize(),
loadAverage:
signals.system.loadAverage1m.asTimeSeries()
+ signals.system.systemCPUCount.asPanelMixin()
+ commonlib.panels.system.timeSeries.loadAverage.stylize(cpuCountName='.*CPU count.*'),
cpuUsage:
signals.process.processCPUUsage.asTimeSeries()
+ signals.system.systemCPUUsage.asPanelMixin()
+ commonlib.panels.cpu.timeSeries.utilization.stylize(),
memoryUsage:
signals.process.memoryUsedResident.asTimeSeries()
+ commonlib.panels.memory.timeSeries.usageBytes.stylize(),
memoryUsageVirtual:
signals.process.memoryUsedVirtual.asTimeSeries()
+ commonlib.panels.memory.timeSeries.usageBytes.stylize(),
filesUsed:
signals.process.filesOpen.asTimeSeries()
+ signals.process.filesMax.asPanelMixin()
+ commonlib.panels.generic.timeSeries.base.stylize(),
},
}