glances.conf 7.4 KB
Newer Older
1 2 3 4 5 6 7 8
##############################################################################
# User interface
##############################################################################

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

9 10 11 12
##############################################################################
# plugins
##############################################################################

N
Nicolargo 已提交
13
[quicklook]
N
nicolargo 已提交
14
# Define CPU, MEM and SWAP thresholds in %
N
Nicolargo 已提交
15 16 17 18 19 20 21 22 23 24
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

25
[cpu]
26
# Default values if not defined: 50/70/90 (except for iowait)
N
Nicolas Hennion 已提交
27 28 29
user_careful=50
user_warning=70
user_critical=90
30
#user_log=False
31
#user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
N
Nicolas Hennion 已提交
32 33 34 35 36 37
system_careful=50
system_warning=70
system_critical=90
steal_careful=50
steal_warning=70
steal_critical=90
38
#steal_log=True
39
# I/O wait percentage should be lower than 1/# (of CPU cores)
40 41 42 43 44 45
# 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))
46 47 48
ctx_switches_careful=10000
ctx_switches_warning=12000
ctx_switches_critical=14000
49 50

[percpu]
N
nicolargo 已提交
51
# Define CPU thresholds in %
A
Alessio Sergi 已提交
52
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
53 54 55 56 57 58 59 60 61
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
62 63

[load]
N
nicolargo 已提交
64
# Define LOAD thresholds
A
Alessio Sergi 已提交
65 66
# Value * number of cores
# Default values if not defined: 0.7/1.0/5.0 per number of cores
A
asergi 已提交
67
# Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
68
#         http://www.linuxjournal.com/article/9001
69 70 71
careful=0.7
warning=1.0
critical=5.0
72
#log=False
73

74
[mem]
N
nicolargo 已提交
75
# Define RAM thresholds in %
A
Alessio Sergi 已提交
76
# Default values if not defined: 50/70/90
77 78 79 80
careful=50
warning=70
critical=90

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

88 89
#[network]
# Define the list of hidden network interfaces (comma-separated regexp)
90
#hide=docker.*,lo
91 92 93
# WLAN 0 alias
#wlan0_alias=Wireless IF
# WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
94 95 96
#wlan0_rx_careful=4000000
#wlan0_rx_warning=5000000
#wlan0_rx_critical=6000000
97
#wlan0_rx_log=True
98 99 100
#wlan0_tx_careful=700000
#wlan0_tx_warning=900000
#wlan0_tx_critical=1000000
101
#wlan0_tx_log=True
102

103 104
#[diskio]
# Define the list of hidden disks (comma-separated regexp)
105
#hide=sda2,sda5,loop.*
106 107
# Alias for sda1
#sda1_alias=IntDisk
108 109

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

122
[folders]
N
nicolargo 已提交
123 124 125 126 127 128 129
# 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)
130 131 132 133 134 135 136 137
#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
138
#folder_4_path=/root
N
nicolargo 已提交
139

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

161
[processlist]
N
nicolargo 已提交
162
# Define CPU/MEM (per process) thresholds in %
A
Alessio Sergi 已提交
163
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
164 165 166 167 168 169
cpu_careful=50
cpu_warning=70
cpu_critical=90
mem_careful=50
mem_warning=70
mem_critical=90
170

171 172 173
##############################################################################
# Client/server
##############################################################################
A
Alessio Sergi 已提交
174

N
nicolargo 已提交
175
[serverlist]
176
# Define the static servers list
A
Alessio Sergi 已提交
177 178 179 180 181 182 183 184 185 186
#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
187

N
nicolargo 已提交
188
[passwords]
189 190 191 192
# Define the passwords list
# Syntax: host=password
# Where: host is the hostname
#        password is the clear password
193
# Additionally (and optionally) a default password could be defined
194 195 196
#xps=abc
#default=defaultpassword

197 198 199 200
##############################################################################
# Exports
##############################################################################

201
[influxdb]
N
nicolargo 已提交
202
# Configuration for the --export-influxdb option
N
nicolargo 已提交
203
# https://influxdb.com/
204 205 206 207 208
host=localhost
port=8086
user=root
password=root
db=glances
209 210 211 212
prefix=localhost
#tags=foo:bar,spam:eggs

[opentsdb]
N
nicolargo 已提交
213
# Configuration for the --export-opentsdb option
214 215 216 217 218
# http://opentsdb.net/
host=localhost
port=4242
#prefix=glances
#tags=foo:bar,spam:eggs
N
Nicolargo 已提交
219 220

[statsd]
A
Alessio Sergi 已提交
221
# Configuration for the --export-statsd option
222
# https://github.com/etsy/statsd
N
Nicolargo 已提交
223 224 225
host=localhost
port=8125
#prefix=glances
226

227
[elasticsearch]
A
Alessio Sergi 已提交
228
# Configuration for the --export-elasticsearch option
229 230 231 232 233 234
# 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 已提交
235
[riemann]
A
Alessio Sergi 已提交
236
# Configuration for the --export-riemann option
N
nicolargo 已提交
237 238 239 240
# http://riemann.io
host=localhost
port=5555

241 242 243
[rabbitmq]
host=localhost
port=5672
244 245
user=guest
password=guest
246
queue=glances_queue
N
nicolargo 已提交
247

248
##############################################################################
N
nicolargo 已提交
249
# AMPS
N
nicolargo 已提交
250 251 252 253 254 255 256 257 258 259
# * 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
260
##############################################################################
N
nicolargo 已提交
261

262
[amp_dropbox]
N
nicolargo 已提交
263
# Use the default AMP (no dedicated AMP Python script)
N
nicolargo 已提交
264
enable=false
265 266 267 268 269 270
regex=.*dropbox.*
refresh=3
one_line=false
command=dropbox status
countmin=1

N
nicolargo 已提交
271 272 273 274
[amp_python]
# Monitor all Python scripts
enable=false
regex=.*python.*
N
nicolargo 已提交
275 276 277
refresh=3
countmax=2

N
Nicolargo 已提交
278
[amp_nginx]
N
nicolargo 已提交
279 280 281 282
# Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
enable=true
regex=\/usr\/sbin\/nginx
refresh=60
N
nicolargo 已提交
283
one_line=false
N
nicolargo 已提交
284
status_url=http://localhost/nginx_status
N
Nicolargo 已提交
285 286 287 288 289

[amp_systemd]
# Systemd
enable=true
regex=\/usr\/lib\/systemd\/systemd
290
refresh=30
N
nicolargo 已提交
291 292 293 294 295 296 297
one_line=true
systemctl_cmd=/usr/bin/systemctl --plain

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