-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcpu3.conf
128 lines (112 loc) · 5.31 KB
/
cpu3.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
########################################################################
# Extract CPU information
# Page: 1
# Information Status Statistics
# - cpu frequency - yes - yes
# - cpu voltage - yes - yes
# - cpu load 1, 5, 15 - yes - yes
# - cpu scaling governor - yes - no
# - gpu frequency - yes - yes
# - gpu voltage - yes - yes
# - gpu load snapshot - yes - yes
# - vdd core voltage - no - yes
# - gpu scaling governor - yes - no
########################################################################
dynamic.1.name=cpu_freq
dynamic.1.source=/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
dynamic.1.regexp=(.*)
dynamic.1.postprocess=$1/1000
dynamic.1.rrd=GAUGE
dynamic.2.name=cpu_volt
dynamic.2.source=/sys/devices/pwm_regulators/pwm_regulators:pwm-regulator@0/regulator/regulator.25/microvolts
dynamic.2.regexp=(.*)
dynamic.2.postprocess=$1/1000000
dynamic.2.rrd=GAUGE
dynamic.3.name=load1,load5,load15
dynamic.3.source=/proc/loadavg
dynamic.3.regexp=^(\S+)\s(\S+)\s(\S+)
dynamic.3.postprocess=
dynamic.3.rrd=GAUGE
dynamic.4.name=scaling_governor
dynamic.4.source=/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
dynamic.4.regexp=(.*)
dynamic.4.postprocess=
dynamic.4.rrd=GAUGE
dynamic.5.name=gpu_freq
dynamic.5.source=/sys/class/devfreq/57000000.gpu/cur_freq
dynamic.5.regexp=(.*)
dynamic.5.postprocess=$1/1000000
dynamic.5.rrd=GAUGE
dynamic.6.name=gpu_governor
dynamic.6.source=/sys/class/devfreq/57000000.gpu/governor
dynamic.6.regexp=(.*)
dynamic.6.postprocess=
dynamic.6.rrd=GAUGE
dynamic.7.name=gpu_volt
dynamic.7.source=/sys/devices/pwm_regulators/pwm_regulators:pwm-regulator@1/regulator/regulator.26/microvolts
dynamic.7.regexp=(.*)
dynamic.7.postprocess=$1/1000000
dynamic.7.rrd=GAUGE
dynamic.8.name=vdd_core
dynamic.8.source=/sys/devices/7000d000.i2c/i2c-4/4-003c/max77620-pmic/regulator/regulator.8/microvolts
dynamic.8.regexp=(.*)
dynamic.8.postprocess=$1/1000000
dynamic.8.rrd=GAUGE
dynamic.9.name=gpu_load
dynamic.9.source=/sys/devices/platform/host1x/57000000.gpu/load
dynamic.9.regexp=(.*)
dynamic.9.postprocess=$1/1000
dynamic.9.rrd=GAUGE
#dynamic.10.name=xusb
#dynamic.10.source=/sys/devices/7000d000.i2c/i2c-4/4-003c/max77620-pmic/regulator/regulator.12/microvolts
#dynamic.10.regexp=(.*)
#dynamic.10.postprocess=$1/1000000
#dynamic.10.rrd=GAUGE
#dynamic.11.name=pcie_dvd
#dynamic.11.source=/sys/devices/7000d000.i2c/i2c-4/4-003c/max77620-pmic/regulator/regulator.13/microvolts
#dynamic.11.regexp=(.*)
#dynamic.11.postprocess=$1/1000000
#dynamic.11.rrd=GAUGE
#dynamic.12.name=pcie_hvd
#dynamic.12.source=/sys/devices/7000d000.i2c/i2c-4/4-003c/max77620-pmic/regulator/regulator.11/microvolts
#dynamic.12.regexp=(.*)
#dynamic.12.postprocess=$1/1000000
#dynamic.12.rrd=GAUGE
web.status.1.content.1.name=CPU
web.status.1.content.1.icon=cpu.png
web.status.1.content.1.line.1=JustGageBar("CPU Load", "1min", 0, data.load1, 1, 100, 80)+" "+JustGageBar("CPU Load", "5min", 0, data.load5, 1, 100, 80)+" "+JustGageBar("CPU Load", "15min", 0, data.load15, 1, 100, 80)+" "+JustGageBar("GPU Load","snapshot", 0,data.gpu_load,1,100,80)
#web.status.1.content.1.line.1=JustGageBar("Load", "1min", 0, data.load1, 100, 100, 80)+" "+JustGageBar("Load", "5min", 0, data.load5, 100, 100, 80)+" "+JustGageBar("Load", "15min", 0, data.load15, 100, 100, 80)
web.status.1.content.1.line.2="CPU frequency: <b>" + data.cpu_freq+ "MHz</b> Voltage: <b>" + data.cpu_volt + "V</b>"
web.status.1.content.1.line.3="Scaling governor: <b>" + data.scaling_governor + "</b>"
web.status.1.content.1.line.4="GPU frequency: <b>" + data.gpu_freq+ "MHz</b> Voltage: <b>" + data.gpu_volt + "V</b>"
web.status.1.content.1.line.5="Scaling governor: <b>" + data.gpu_governor + "</b>"
web.statistics.1.content.1.title="CPU Load"
web.statistics.1.content.1.name=CPU Load
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.graph.4=gpu_load
web.statistics.1.content.1.ds_graph_options.load1.label=Load 1min
web.statistics.1.content.1.ds_graph_options.load5.label=Load 5min
web.statistics.1.content.1.ds_graph_options.load15.label=Load 15min
web.statistics.1.content.1.ds_graph_options.gpu_load.label=GPU Load
web.statistics.1.content.2.title="CPU Frequency"
web.statistics.1.content.2.name=CPU Frequency
web.statistics.1.content.2.graph.1=cpu_freq
web.statistics.1.content.2.graph.2=gpu_freq
web.statistics.1.content.2.ds_graph_options.cpu_freq.label=CPU freq
web.statistics.1.content.2.ds_graph_options.gpu_freq.label=GPU freq
web.statistics.1.content.3.title="CPU Voltage"
web.statistics.1.content.3.name=CPU Voltage
web.statistics.1.content.3.graph.1=cpu_volt
web.statistics.1.content.3.graph.2=gpu_volt
#web.statistics.1.content.3.graph.3=pcie_hvd
#web.statistics.1.content.3.graph.4=pcie_dvd
#web.statistics.1.content.3.graph.5=xusb
web.statistics.1.content.3.graph.3=vdd_core
web.statistics.1.content.3.ds_graph_options.cpu_volt.label=CPU voltage
web.statistics.1.content.3.ds_graph_options.gpu_volt.label=GPU voltage
web.statistics.1.content.3.ds_graph_options.vdd_core.label=VDD Core
#web.statistics.1.content.3.ds_graph_options.xusb.label=xusb
#web.statistics.1.content.3.ds_graph_options.pcie_hvd.label=pcie hvd
#web.statistics.1.content.3.ds_graph_options.pcie_dvd.label=pcie dvd