glances.conf 7.2 KB
Newer Older
1 2 3 4
##############################################################################
# plugins
##############################################################################

N
Nicolargo 已提交
5
[quicklook]
N
nicolargo 已提交
6
# Define CPU, MEM and SWAP thresholds in %
N
Nicolargo 已提交
7 8 9 10 11 12 13 14 15 16
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

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

[percpu]
N
nicolargo 已提交
43
# Define CPU thresholds in %
A
Alessio Sergi 已提交
44
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
45 46 47 48 49 50 51 52 53
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
54 55

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

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

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

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

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

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

114
[folders]
N
nicolargo 已提交
115 116 117 118 119 120 121
# 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)
122 123 124 125 126 127 128 129
#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
130
#folder_4_path=/root
N
nicolargo 已提交
131

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

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

163 164 165
##############################################################################
# Client/server
##############################################################################
A
Alessio Sergi 已提交
166

N
nicolargo 已提交
167
[serverlist]
168
# Define the static servers list
A
Alessio Sergi 已提交
169 170 171 172 173 174 175 176 177 178
#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
179

N
nicolargo 已提交
180
[passwords]
181 182 183 184
# Define the passwords list
# Syntax: host=password
# Where: host is the hostname
#        password is the clear password
185
# Additionally (and optionally) a default password could be defined
186 187 188
#xps=abc
#default=defaultpassword

189 190 191 192
##############################################################################
# Exports
##############################################################################

193
[influxdb]
N
nicolargo 已提交
194
# Configuration for the --export-influxdb option
N
nicolargo 已提交
195
# https://influxdb.com/
196 197 198 199 200
host=localhost
port=8086
user=root
password=root
db=glances
201 202 203 204
prefix=localhost
#tags=foo:bar,spam:eggs

[opentsdb]
N
nicolargo 已提交
205
# Configuration for the --export-opentsdb option
206 207 208 209 210
# http://opentsdb.net/
host=localhost
port=4242
#prefix=glances
#tags=foo:bar,spam:eggs
N
Nicolargo 已提交
211 212

[statsd]
A
Alessio Sergi 已提交
213
# Configuration for the --export-statsd option
214
# https://github.com/etsy/statsd
N
Nicolargo 已提交
215 216 217
host=localhost
port=8125
#prefix=glances
218

219
[elasticsearch]
A
Alessio Sergi 已提交
220
# Configuration for the --export-elasticsearch option
221 222 223 224 225 226
# 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 已提交
227
[riemann]
A
Alessio Sergi 已提交
228
# Configuration for the --export-riemann option
N
nicolargo 已提交
229 230 231 232
# http://riemann.io
host=localhost
port=5555

233 234 235
[rabbitmq]
host=localhost
port=5672
236 237
user=guest
password=guest
238
queue=glances_queue
N
nicolargo 已提交
239

240
##############################################################################
N
nicolargo 已提交
241
# AMPS
N
nicolargo 已提交
242 243 244 245 246 247 248 249 250 251
# * 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
252
##############################################################################
N
nicolargo 已提交
253

254
[amp_dropbox]
N
nicolargo 已提交
255
# Use the default AMP (no dedicated AMP Python script)
256 257 258 259 260 261 262
enable=true
regex=.*dropbox.*
refresh=3
one_line=false
command=dropbox status
countmin=1

N
nicolargo 已提交
263 264 265 266 267 268 269 270
[amp_xeyes]
# Use the default AMP (no dedicated AMP Python script)
enable=true
regex=.*xeyes.*
refresh=3
countmin=1
countmax=2

N
Nicolargo 已提交
271
[amp_nginx]
N
nicolargo 已提交
272 273 274 275
# Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
enable=true
regex=\/usr\/sbin\/nginx
refresh=60
N
nicolargo 已提交
276
one_line=false
N
nicolargo 已提交
277
status_url=http://localhost/nginx_status
N
Nicolargo 已提交
278 279 280 281 282

[amp_systemd]
# Systemd
enable=true
regex=\/usr\/lib\/systemd\/systemd
283
refresh=30
N
nicolargo 已提交
284 285 286 287 288 289 290
one_line=true
systemctl_cmd=/usr/bin/systemctl --plain

[amp_systemv]
# Systemv
enable=true
regex=\/sbin\/init
291
refresh=30
N
Nicolargo 已提交
292
one_line=true
N
nicolargo 已提交
293
service_cmd=/usr/bin/service --status-all
N
nicolargo 已提交
294 295 296 297 298 299

[amp_python]
# Monitor all Python scripts
enable=true
regex=.*python.*
refresh=3