glances.conf 6.2 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]
N
nicolargo 已提交
14
# Define CPU thresholds in %
15
# Default values if not defined: 50/70/90
N
Nicolas Hennion 已提交
16 17 18
user_careful=50
user_warning=70
user_critical=90
19
#user_log=False
20
#user_critical_action=echo `date` - {{user}} > /tmp/cpu.alert
N
Nicolas Hennion 已提交
21 22 23 24 25 26 27 28 29
iowait_careful=50
iowait_warning=70
iowait_critical=90
system_careful=50
system_warning=70
system_critical=90
steal_careful=50
steal_warning=70
steal_critical=90
30
#steal_log=True
31 32 33 34 35
# 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
36 37

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

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

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

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

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

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

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

109
[folders]
N
nicolargo 已提交
110 111 112 113 114 115 116
# 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)
117 118 119 120 121 122 123 124
#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
125
#folder_4_path=/root
N
nicolargo 已提交
126

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

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

N
nicolargo 已提交
158
[monitor]
159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177
# 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
#list_1_description=Dropbox
#list_1_regex=.*dropbox.*
#list_1_countmin=1
#list_1_command=dropbox status | head -1
V
vsn4ik 已提交
178 179 180 181 182
#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 已提交
183

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

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

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

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

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

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

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

N
nicolargo 已提交
253 254 255 256 257 258 259 260 261 262
######
# AMPS
######

[nginx]
# Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
enable=true
regex=\/usr\/sbin\/nginx
refresh=60
status_url=http://localhost/nginx_status