-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathperformance.conf
155 lines (132 loc) · 7.21 KB
/
performance.conf
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
# path: /home/klassiker/.local/share/repos/rpimonitor/performance.conf
# author: klassiker [mrdotx]
# github: https://github.com/mrdotx/rpimonitor
# date: 2021-01-15T13:54:25+0100
dynamic.1.name=scaling_governor
dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
dynamic.1.regexp=(.*)
dynamic.1.postprocess=
dynamic.1.rrd=
dynamic.2.name=cpu_frequency
dynamic.2.source=/opt/vc/bin/vcgencmd measure_clock arm
dynamic.2.regexp=(\d+.\d+)
dynamic.2.postprocess=$1/1000000
dynamic.2.rrd=
dynamic.3.name=cpu_voltage
dynamic.3.source=/opt/vc/bin/vcgencmd measure_volts core
dynamic.3.regexp=(\d+.\d+)V
dynamic.3.postprocess=
dynamic.3.rrd=
dynamic.4.name=load1,load5,load15
dynamic.4.source=/proc/loadavg
dynamic.4.regexp=^(\S+)\s(\S+)\s(\S+)
dynamic.4.postprocess=
dynamic.4.rrd=GAUGE
dynamic.5.name=soc_temp
dynamic.5.source=/opt/vc/bin/vcgencmd measure_temp
dynamic.5.regexp=(\d+.\d+)
dynamic.5.postprocess=
dynamic.5.rrd=GAUGE
dynamic.6.name=memory_available
dynamic.6.source=/proc/meminfo
dynamic.6.regexp=MemAvailable:\s+(\d+)
dynamic.6.postprocess=$1/1024
dynamic.6.rrd=GAUGE
dynamic.7.name=swap_used
dynamic.7.source=/proc/meminfo
dynamic.7.regexp=SwapFree:\s+(\d+)
dynamic.7.postprocess=$this->{'static'}->{'swap_total'} - ($1/1024)
dynamic.7.rrd=GAUGE
dynamic.8.name=boot_used
dynamic.8.source=df /boot
dynamic.8.regexp=\S+\s+\d+\s+(\d+).*\/boot$
dynamic.8.postprocess=$1/1024
dynamic.8.rrd=GAUGE
dynamic.9.name=root_used
dynamic.9.source=df /
dynamic.9.regexp=\S+\s+\d+\s+(\d+).*\/$
dynamic.9.postprocess=$1/1024
dynamic.9.rrd=GAUGE
dynamic.10.name=memory_free
dynamic.10.source=/proc/meminfo
dynamic.10.regexp=MemFree:\s+(\d+)
dynamic.10.postprocess=$1/1024
dynamic.10.rrd=GAUGE
static.1.name=max_proc
static.1.source=nproc
static.1.regexp=(.*)
static.1.postprocess=$1 + 1
static.2.name=processor
static.2.source=/proc/cpuinfo
static.2.regexp=(?:Processor|model name|Hardware)\s+: (.*)
static.2.postprocess=
static.3.name=memory_total
static.3.source=/proc/meminfo
static.3.regexp=MemTotal:\s+(\d+)
static.3.postprocess=$1/1024
static.4.name=swap_total
static.4.source=/proc/meminfo
static.4.regexp=SwapTotal:\s+(\d+)
static.4.postprocess=$1/1024
static.5.name=boot_total
static.5.source=df /boot
static.5.regexp=\S+\s+(\d+).*\/boot$
static.5.postprocess=$1/1024
static.6.name=root_total
static.6.source=df /
static.6.regexp=\S+\s+(\d+).*\/$
static.6.postprocess=$1/1024
web.status.1.content.1.name=Performance
web.status.1.content.1.icon=cpu.png
web.status.1.content.1.line.1="<table width=100%><tr height=20><td width=100>Processor:</td><td><b>"+data.processor+"</b> "+data.cpu_frequency+"MHz "+data.cpu_voltage+"V "+data.scaling_governor+"</td></tr></table>"
web.status.1.content.1.line.2=InsertHTML("/rpimonitor/addons/top/top.html")
web.status.1.content.1.line.3=JustGageBar("Load (Ø 1min)", (Math.round((100/(data.max_proc-1)*data.load1)*10)/10)+"%", 0, data.load1, data.max_proc, 110, 80, ["#0000ff","#9900ff","#ff00ff"])+" "+JustGageBar("Load (Ø 5min)", (Math.round((100/(data.max_proc-1)*data.load5)*10)/10)+"%", 0, data.load5, data.max_proc, 110, 80, ["#0000ff","#9900ff","#ff00ff"])+" "+JustGageBar("Load (Ø 15min)", (Math.round((100/(data.max_proc-1)*data.load15)*10)/10)+"%", 0, data.load15, data.max_proc, 110, 80, ["#0000ff","#9900ff","#ff00ff"])+" "+JustGageBar("CPU (°C)", (Math.round((100/80*data.soc_temp)*10)/10)+"%", 0, data.soc_temp, 80, 110, 80, ["#0000ff","#9900ff","#ff00ff"])
web.status.1.content.1.line.4=JustGageBar("Memory (MB)", (Math.round((100/data.memory_total*(data.memory_total-data.memory_available))*10)/10)+"%", 0, (Math.round((data.memory_total-data.memory_available)*10)/10), (Math.round(data.memory_total*10)/10), 110, 80, ["#0000ff","#9900ff","#ff00ff"])+" "+JustGageBar("Swap (MB)", (Math.round((100/data.swap_total*data.swap_used)*10)/10)+"%", 0, (Math.round((data.swap_used)*10)/10), (Math.round(data.swap_total*10)/10), 110, 80, ["#0000ff","#9900ff","#ff00ff"])+" "+JustGageBar("Boot (GB)", (Math.round((100/data.boot_total*data.boot_used)*10)/10)+"%", 0, (Math.round((data.boot_used/1024)*100)/100), (Math.round(data.boot_total/1024*100)/100), 110, 80, ["#0000ff","#9900ff","#ff00ff"])+" "+JustGageBar("Root (GB)", (Math.round((100/data.root_total*data.root_used)*10)/10)+"%", 0, (Math.round((data.root_used/1024)*10)/10), (Math.round(data.root_total/1024*10)/10), 110, 80, ["#0000ff","#9900ff","#ff00ff"])
web.statistics.1.content.1.name=CPU Loads
web.statistics.1.content.1.graph.1=load1
web.statistics.1.content.1.graph.2=load5
web.statistics.1.content.1.graph.3=load15
web.statistics.1.content.1.ds_graph_options.load1.label=Load 1min
web.statistics.1.content.1.ds_graph_options.load1.color="#0000ff"
web.statistics.1.content.1.ds_graph_options.load5.label=Load 5min
web.statistics.1.content.1.ds_graph_options.load5.color="#9900ff"
web.statistics.1.content.1.ds_graph_options.load15.label=Load 15min
web.statistics.1.content.1.ds_graph_options.load15.color="#ff00ff"
web.statistics.1.content.2.name=Temperature
web.statistics.1.content.2.graph.1=soc_temp
web.statistics.1.content.2.ds_graph_options.soc_temp.label=Core temperature (°C)
web.statistics.1.content.2.ds_graph_options.soc_temp.color="#ff00ff"
web.statistics.1.content.3.name=Memory
web.statistics.1.content.3.graph.1=memory_total
web.statistics.1.content.3.graph.2=memory_free
web.statistics.1.content.3.graph.3=memory_available
web.statistics.1.content.3.ds_graph_options.memory_total.label=Total Memory(MB)
web.statistics.1.content.3.ds_graph_options.memory_total.color="#0000ff"
web.statistics.1.content.3.ds_graph_options.memory_free.label=Free Memory (MB)
web.statistics.1.content.3.ds_graph_options.memory_free.color="#9900ff"
web.statistics.1.content.3.ds_graph_options.memory_available.label=Available Memory (MB)
web.statistics.1.content.3.ds_graph_options.memory_available.color="#ff00ff"
web.statistics.1.content.4.name=Swap
web.statistics.1.content.4.graph.1=swap_total
web.statistics.1.content.4.graph.2=swap_used
web.statistics.1.content.4.ds_graph_options.swap_total.label=Swap size (MB)
web.statistics.1.content.4.ds_graph_options.swap_total.color="#9900ff"
web.statistics.1.content.4.ds_graph_options.swap_used.label=Swap used (MB)
web.statistics.1.content.4.ds_graph_options.swap_used.lines={ fill: true }
web.statistics.1.content.4.ds_graph_options.swap_used.color="#0000ff"
web.statistics.1.content.5.name=Disks - boot
web.statistics.1.content.5.graph.1=boot_total
web.statistics.1.content.5.graph.2=boot_used
web.statistics.1.content.5.ds_graph_options.boot_total.label=Size of /boot (MB)
web.statistics.1.content.5.ds_graph_options.boot_total.color="#9900ff"
web.statistics.1.content.5.ds_graph_options.boot_used.label=Used on /boot (MB)
web.statistics.1.content.5.ds_graph_options.boot_used.lines={ fill: true }
web.statistics.1.content.5.ds_graph_options.boot_used.color="#0000ff"
web.statistics.1.content.6.name=Disks - root
web.statistics.1.content.6.graph.1=root_total
web.statistics.1.content.6.graph.2=root_used
web.statistics.1.content.6.ds_graph_options.root_total.label=Size of / (MB)
web.statistics.1.content.6.ds_graph_options.root_total.color="#9900ff"
web.statistics.1.content.6.ds_graph_options.root_used.label=Used on / (MB)
web.statistics.1.content.6.ds_graph_options.root_used.lines={ fill: true }
web.statistics.1.content.6.ds_graph_options.root_used.color="#0000ff"