glances.conf 6.5 KB
Newer Older
N
Nicolargo 已提交
1
[quicklook]
N
nicolargo 已提交
2
# Define CPU, MEM and SWAP thresholds in %
N
Nicolargo 已提交
3 4 5 6 7 8 9 10 11 12
cpu_careful=50
cpu_warning=70
cpu_critical=90
mem_careful=50
mem_warning=70
mem_critical=90
swap_careful=50
swap_warning=70
swap_critical=90

13
[cpu]
14
# Default values if not defined: 50/70/90 (except for iowait)
N
Nicolas Hennion 已提交
15 16 17
user_careful=50
user_warning=70
user_critical=90
18
#user_log=False
19
#user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
N
Nicolas Hennion 已提交
20 21 22 23 24 25
system_careful=50
system_warning=70
system_critical=90
steal_careful=50
steal_warning=70
steal_critical=90
26
#steal_log=True
27 28 29 30 31
# I/O wait percentage should be lower than 1/# (of CPU cores)
# Let blanck to default config (1/#-20% / 1/# / 1/#+20%)
#iowait_careful=20
#iowait_warning=25
#iowait_critical=30
32 33 34 35 36
# Context switch limit per core / second
# For example, if you have 2 Core, critical limit will be 28000/sec
ctx_switches_careful=10000
ctx_switches_warning=12000
ctx_switches_critical=14000
37 38

[percpu]
N
nicolargo 已提交
39
# Define CPU thresholds in %
A
Alessio Sergi 已提交
40
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
41 42 43 44 45 46 47 48 49
user_careful=50
user_warning=70
user_critical=90
iowait_careful=50
iowait_warning=70
iowait_critical=90
system_careful=50
system_warning=70
system_critical=90
50 51

[load]
N
nicolargo 已提交
52
# Define LOAD thresholds
A
Alessio Sergi 已提交
53 54
# Value * number of cores
# Default values if not defined: 0.7/1.0/5.0 per number of cores
A
asergi 已提交
55
# Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
56
#         http://www.linuxjournal.com/article/9001
57 58 59
careful=0.7
warning=1.0
critical=5.0
60
#log=False
61

62
[mem]
N
nicolargo 已提交
63
# Define RAM thresholds in %
A
Alessio Sergi 已提交
64
# Default values if not defined: 50/70/90
65 66 67 68
careful=50
warning=70
critical=90

69
[memswap]
N
nicolargo 已提交
70
# Define SWAP thresholds in %
A
Alessio Sergi 已提交
71
# Default values if not defined: 50/70/90
72 73 74 75
careful=50
warning=70
critical=90

76 77
#[network]
# Define the list of hidden network interfaces (comma-separated regexp)
78
#hide=docker.*,lo
79 80 81
# WLAN 0 alias
#wlan0_alias=Wireless IF
# WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
82 83 84
#wlan0_rx_careful=4000000
#wlan0_rx_warning=5000000
#wlan0_rx_critical=6000000
85
#wlan0_rx_log=True
86 87 88
#wlan0_tx_careful=700000
#wlan0_tx_warning=900000
#wlan0_tx_critical=1000000
89
#wlan0_tx_log=True
90

91 92
#[diskio]
# Define the list of hidden disks (comma-separated regexp)
93
#hide=sda2,sda5,loop.*
94 95
# Alias for sda1
#sda1_alias=IntDisk
96 97

[fs]
98
# Define the list of hidden file system (comma-separated regexp)
99
#hide=/boot.*
N
nicolargo 已提交
100
# Define filesystem space thresholds in %
101
# Default values if not defined: 50/70/90
N
Nicolargo 已提交
102 103
# It is also possible to define per mount point value
# Example: /_careful=40
104 105 106
careful=50
warning=70
critical=90
107
# Allow additional file system types (comma-separated FS type)
108
#allow=zfs
109

110
[folders]
N
nicolargo 已提交
111 112 113 114 115 116 117
# Define a folder list to monitor
# The list is composed of items (list_#nb <= 10)
# An item is defined by:
# * path: absolute path
# * careful: optional careful threshold (in MB)
# * warning: optional warning threshold (in MB)
# * critical: optional critical threshold (in MB)
118 119 120 121 122 123 124 125
#folder_1_path=/tmp
#folder_1_careful=2500
#folder_1_warning=3000
#folder_1_critical=3500
#folder_2_path=/home/nicolargo/Videos
#folder_2_warning=17000
#folder_2_critical=20000
#folder_3_path=/nonexisting
126
#folder_4_path=/root
N
nicolargo 已提交
127

N
Nicolargo 已提交
128
[sensors]
N
nicolargo 已提交
129
# Sensors core thresholds (in Celsius...)
A
Alessio Sergi 已提交
130
# Default values if not defined: 60/70/80
N
Nicolargo 已提交
131 132 133
temperature_core_careful=60
temperature_core_warning=70
temperature_core_critical=80
N
nicolargo 已提交
134
# Temperatures threshold in °C for hddtemp
A
Alessio Sergi 已提交
135
# Default values if not defined: 45/52/60
N
Nicolargo 已提交
136 137 138
temperature_hdd_careful=45
temperature_hdd_warning=52
temperature_hdd_critical=60
N
nicolargo 已提交
139
# Battery threshold in %
A
Alessio Sergi 已提交
140 141 142
battery_careful=80
battery_warning=90
battery_critical=95
143 144 145 146 147
# Sensors alias
#temp1_alias=Motherboard 0
#temp2_alias=Motherboard 1
#core 0_alias=CPU Core 0
#core 1_alias=CPU Core 1
148

149
[processlist]
N
nicolargo 已提交
150
# Define CPU/MEM (per process) thresholds in %
A
Alessio Sergi 已提交
151
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
152 153 154 155 156 157
cpu_careful=50
cpu_warning=70
cpu_critical=90
mem_careful=50
mem_warning=70
mem_critical=90
158

N
nicolargo 已提交
159
[monitor]
160 161 162 163 164 165 166 167 168 169 170 171 172 173 174
# Define the list of processes to monitor
# *** This section is optional ***
# The list is composed of items (list_#nb <= 10)
# An item is defined:
# * description: Description of the processes (max 16 chars)
# * regex: regular expression of the processes to monitor
# * command: (optional) full path to shell command/script for extended stat
#            Use with caution. Should return a single line string.
#            Only execute when at least one process is running
#            By default display CPU and MEM %
#            Limitation: Do not use in client / server mode
# * countmin: (optional) minimal number of processes
#             A warning will be displayed if number of process < count
# * countmax: (optional) maximum number of processes
#             A warning will be displayed if number of process > count
N
nicolargo 已提交
175 176 177 178 179 180 181 182 183
list_1_description=Dropbox
list_1_regex=.*dropbox.*
list_1_countmin=1
list_1_command=dropbox status | head -1
list_2_description=Python programs
list_2_regex=.*python.*
list_3_description=Famous Xeyes
list_3_regex=.*xeyes.*
list_3_countmin=1
A
Alessio Sergi 已提交
184

N
nicolargo 已提交
185
[serverlist]
186
# Define the static servers list
A
Alessio Sergi 已提交
187 188 189 190 191 192 193 194 195 196
#server_1_name=localhost
#server_1_alias=My local PC
#server_1_port=61209
#server_2_name=localhost
#server_2_port=61235
#server_3_name=192.168.0.17
#server_3_alias=Another PC on my network
#server_3_port=61209
#server_4_name=pasbon
#server_4_port=61237
197

N
nicolargo 已提交
198
[passwords]
199 200 201 202
# Define the passwords list
# Syntax: host=password
# Where: host is the hostname
#        password is the clear password
203
# Additionally (and optionally) a default password could be defined
204 205 206
#xps=abc
#default=defaultpassword

207
[influxdb]
N
nicolargo 已提交
208
# Configuration for the --export-influxdb option
N
nicolargo 已提交
209
# https://influxdb.com/
210 211 212 213 214
host=localhost
port=8086
user=root
password=root
db=glances
215 216 217 218
prefix=localhost
#tags=foo:bar,spam:eggs

[opentsdb]
N
nicolargo 已提交
219
# Configuration for the --export-opentsdb option
220 221 222 223 224
# http://opentsdb.net/
host=localhost
port=4242
#prefix=glances
#tags=foo:bar,spam:eggs
N
Nicolargo 已提交
225 226

[statsd]
A
Alessio Sergi 已提交
227
# Configuration for the --export-statsd option
228
# https://github.com/etsy/statsd
N
Nicolargo 已提交
229 230 231
host=localhost
port=8125
#prefix=glances
232

233
[elasticsearch]
A
Alessio Sergi 已提交
234
# Configuration for the --export-elasticsearch option
235 236 237 238 239 240
# Data are available via the ES Restful API. ex: URL/<index>/cpu/system
# https://www.elastic.co
host=localhost
port=9200
index=glances

N
nicolargo 已提交
241
[riemann]
A
Alessio Sergi 已提交
242
# Configuration for the --export-riemann option
N
nicolargo 已提交
243 244 245 246
# http://riemann.io
host=localhost
port=5555

247 248 249
[rabbitmq]
host=localhost
port=5672
250 251
user=guest
password=guest
252
queue=glances_queue
N
nicolargo 已提交
253

N
nicolargo 已提交
254 255 256 257
######
# AMPS
######

N
Nicolargo 已提交
258
[amp_nginx]
N
nicolargo 已提交
259 260 261 262
# Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
enable=true
regex=\/usr\/sbin\/nginx
refresh=60
N
nicolargo 已提交
263
one_line=false
N
nicolargo 已提交
264
status_url=http://localhost/nginx_status
N
Nicolargo 已提交
265 266 267 268 269 270 271 272

[amp_systemd]
# Systemd
enable=true
regex=\/usr\/lib\/systemd\/systemd
refresh=30
one_line=true
systemctl_path=/usr/bin/systemctl --plain