glances.conf 7.6 KB
Newer Older
1 2 3 4 5 6 7 8
##############################################################################
# Globals Glances parameters
##############################################################################

[global]
# Does Glances should check if a newer version is available on Pypi ?
check_update=true

9 10 11 12 13 14 15 16
##############################################################################
# User interface
##############################################################################

[outputs]
# Theme name for the Curses interface: black or white
curse_theme=black

17 18 19 20
##############################################################################
# plugins
##############################################################################

N
Nicolargo 已提交
21
[quicklook]
N
nicolargo 已提交
22
# Define CPU, MEM and SWAP thresholds in %
N
Nicolargo 已提交
23 24 25 26 27 28 29 30 31 32
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

33
[cpu]
34
# Default values if not defined: 50/70/90 (except for iowait)
N
Nicolas Hennion 已提交
35 36 37
user_careful=50
user_warning=70
user_critical=90
38
#user_log=False
39
#user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
N
Nicolas Hennion 已提交
40 41 42 43 44 45
system_careful=50
system_warning=70
system_critical=90
steal_careful=50
steal_warning=70
steal_critical=90
46
#steal_log=True
47
# I/O wait percentage should be lower than 1/# (of CPU cores)
48 49 50 51 52 53
# Let commented for default config (1/#-20% / 1/#-10% / 1/#)
#iowait_careful=30
#iowait_warning=40
#iowait_critical=50
# Context switch limit (core / second)
# Let commented for default config (critical is 56000/# (of CPU core))
54 55 56
ctx_switches_careful=10000
ctx_switches_warning=12000
ctx_switches_critical=14000
57 58

[percpu]
N
nicolargo 已提交
59
# Define CPU thresholds in %
A
Alessio Sergi 已提交
60
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
61 62 63 64 65 66 67 68 69
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
70 71

[load]
N
nicolargo 已提交
72
# Define LOAD thresholds
A
Alessio Sergi 已提交
73 74
# Value * number of cores
# Default values if not defined: 0.7/1.0/5.0 per number of cores
A
asergi 已提交
75
# Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
76
#         http://www.linuxjournal.com/article/9001
77 78 79
careful=0.7
warning=1.0
critical=5.0
80
#log=False
81

82
[mem]
N
nicolargo 已提交
83
# Define RAM thresholds in %
A
Alessio Sergi 已提交
84
# Default values if not defined: 50/70/90
85 86 87 88
careful=50
warning=70
critical=90

89
[memswap]
N
nicolargo 已提交
90
# Define SWAP thresholds in %
A
Alessio Sergi 已提交
91
# Default values if not defined: 50/70/90
92 93 94 95
careful=50
warning=70
critical=90

96 97
#[network]
# Define the list of hidden network interfaces (comma-separated regexp)
98
#hide=docker.*,lo
99 100 101
# WLAN 0 alias
#wlan0_alias=Wireless IF
# WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
102 103 104
#wlan0_rx_careful=4000000
#wlan0_rx_warning=5000000
#wlan0_rx_critical=6000000
105
#wlan0_rx_log=True
106 107 108
#wlan0_tx_careful=700000
#wlan0_tx_warning=900000
#wlan0_tx_critical=1000000
109
#wlan0_tx_log=True
110

111 112
#[diskio]
# Define the list of hidden disks (comma-separated regexp)
113
#hide=sda2,sda5,loop.*
114 115
# Alias for sda1
#sda1_alias=IntDisk
116 117

[fs]
118
# Define the list of hidden file system (comma-separated regexp)
119
#hide=/boot.*
N
nicolargo 已提交
120
# Define filesystem space thresholds in %
121
# Default values if not defined: 50/70/90
N
Nicolargo 已提交
122 123
# It is also possible to define per mount point value
# Example: /_careful=40
124 125 126
careful=50
warning=70
critical=90
127
# Allow additional file system types (comma-separated FS type)
128
#allow=zfs
129

130
[folders]
N
nicolargo 已提交
131 132 133 134 135 136 137
# 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)
138 139 140 141 142 143 144 145
#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
146
#folder_4_path=/root
N
nicolargo 已提交
147

N
Nicolargo 已提交
148
[sensors]
N
nicolargo 已提交
149
# Sensors core thresholds (in Celsius...)
A
Alessio Sergi 已提交
150
# Default values if not defined: 60/70/80
N
Nicolargo 已提交
151 152 153
temperature_core_careful=60
temperature_core_warning=70
temperature_core_critical=80
N
nicolargo 已提交
154
# Temperatures threshold in °C for hddtemp
A
Alessio Sergi 已提交
155
# Default values if not defined: 45/52/60
N
Nicolargo 已提交
156 157 158
temperature_hdd_careful=45
temperature_hdd_warning=52
temperature_hdd_critical=60
N
nicolargo 已提交
159
# Battery threshold in %
A
Alessio Sergi 已提交
160 161 162
battery_careful=80
battery_warning=90
battery_critical=95
163 164 165 166 167
# Sensors alias
#temp1_alias=Motherboard 0
#temp2_alias=Motherboard 1
#core 0_alias=CPU Core 0
#core 1_alias=CPU Core 1
168

169
[processlist]
N
nicolargo 已提交
170
# Define CPU/MEM (per process) thresholds in %
A
Alessio Sergi 已提交
171
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
172 173 174 175 176 177
cpu_careful=50
cpu_warning=70
cpu_critical=90
mem_careful=50
mem_warning=70
mem_critical=90
178

179 180 181
##############################################################################
# Client/server
##############################################################################
A
Alessio Sergi 已提交
182

N
nicolargo 已提交
183
[serverlist]
184
# Define the static servers list
A
Alessio Sergi 已提交
185 186 187 188 189 190 191 192 193 194
#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
195

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

205 206 207 208
##############################################################################
# Exports
##############################################################################

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

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

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

235
[elasticsearch]
A
Alessio Sergi 已提交
236
# Configuration for the --export-elasticsearch option
237 238 239 240 241 242
# 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 已提交
243
[riemann]
A
Alessio Sergi 已提交
244
# Configuration for the --export-riemann option
N
nicolargo 已提交
245 246 247 248
# http://riemann.io
host=localhost
port=5555

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

256
##############################################################################
N
nicolargo 已提交
257
# AMPS
N
nicolargo 已提交
258 259 260 261 262 263 264 265 266 267
# * enable: Enable (true) or disable (false) the AMP
# * regex: Regular expression to filter the process(es)
# * refresh: The AMP is executed every refresh seconds
# * one_line: (optional) Force (if true) the AMP to be displayed in one line
* * command: (optional) command to execute when the process is detected (thk to the regex)
# * 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
# * <foo>: Others variables can be defined and used in the AMP script
268
##############################################################################
N
nicolargo 已提交
269

270
[amp_dropbox]
N
nicolargo 已提交
271
# Use the default AMP (no dedicated AMP Python script)
N
nicolargo 已提交
272
enable=false
273 274 275 276 277 278
regex=.*dropbox.*
refresh=3
one_line=false
command=dropbox status
countmin=1

N
nicolargo 已提交
279 280 281 282
[amp_python]
# Monitor all Python scripts
enable=false
regex=.*python.*
N
nicolargo 已提交
283 284 285
refresh=3
countmax=2

N
Nicolargo 已提交
286
[amp_nginx]
N
nicolargo 已提交
287 288 289 290
# Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
enable=true
regex=\/usr\/sbin\/nginx
refresh=60
N
nicolargo 已提交
291
one_line=false
N
nicolargo 已提交
292
status_url=http://localhost/nginx_status
N
Nicolargo 已提交
293 294 295 296 297

[amp_systemd]
# Systemd
enable=true
regex=\/usr\/lib\/systemd\/systemd
298
refresh=30
N
nicolargo 已提交
299 300 301 302 303 304 305
one_line=true
systemctl_cmd=/usr/bin/systemctl --plain

[amp_systemv]
# Systemv
enable=true
regex=\/sbin\/init
306
refresh=30
N
Nicolargo 已提交
307
one_line=true
N
nicolargo 已提交
308
service_cmd=/usr/bin/service --status-all