You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

525 lines
14 KiB

4 years ago
  1. ##############################################################################
  2. # Globals Glances parameters
  3. ##############################################################################
  4. [global]
  5. # Does Glances should check if a newer version is available on PyPI ?
  6. check_update=true
  7. # History size (maximum number of values)
  8. # Default is 28800: 1 day with 1 point every 3 seconds (default refresh time)
  9. history_size=28800
  10. ##############################################################################
  11. # User interface
  12. ##############################################################################
  13. [outputs]
  14. # Theme name for the Curses interface: black or white
  15. curse_theme=black
  16. # Limit the number of processes to display in the WebUI
  17. max_processes_display=30
  18. ##############################################################################
  19. # plugins
  20. ##############################################################################
  21. [quicklook]
  22. # Define CPU, MEM and SWAP thresholds in %
  23. cpu_careful=50
  24. cpu_warning=70
  25. cpu_critical=90
  26. mem_careful=50
  27. mem_warning=70
  28. mem_critical=90
  29. swap_careful=50
  30. swap_warning=70
  31. swap_critical=90
  32. [cpu]
  33. # Default values if not defined: 50/70/90 (except for iowait)
  34. user_careful=50
  35. user_warning=70
  36. user_critical=90
  37. #user_log=False
  38. #user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
  39. system_careful=50
  40. system_warning=70
  41. system_critical=90
  42. steal_careful=50
  43. steal_warning=70
  44. steal_critical=90
  45. #steal_log=True
  46. # I/O wait percentage should be lower than 1/# (Logical CPU cores)
  47. # Leave commented to just use the default config (1/#-20% / 1/#-10% / 1/#)
  48. #iowait_careful=30
  49. #iowait_warning=40
  50. #iowait_critical=50
  51. # Context switch limit (core / second)
  52. # Leave commented to just use the default config (critical is 50000*# (Logical CPU cores)
  53. #ctx_switches_careful=10000
  54. #ctx_switches_warning=12000
  55. #ctx_switches_critical=14000
  56. [percpu]
  57. # Define CPU thresholds in %
  58. # Default values if not defined: 50/70/90
  59. user_careful=50
  60. user_warning=70
  61. user_critical=90
  62. iowait_careful=50
  63. iowait_warning=70
  64. iowait_critical=90
  65. system_careful=50
  66. system_warning=70
  67. system_critical=90
  68. [gpu]
  69. # Default processor values if not defined: 50/70/90
  70. proc_careful=50
  71. proc_warning=70
  72. proc_critical=90
  73. # Default memory values if not defined: 50/70/90
  74. mem_careful=50
  75. mem_warning=70
  76. mem_critical=90
  77. [mem]
  78. # Define RAM thresholds in %
  79. # Default values if not defined: 50/70/90
  80. careful=50
  81. #careful_action_repeat=echo {{percent}} >> /tmp/memory.alert
  82. warning=70
  83. critical=90
  84. [memswap]
  85. # Define SWAP thresholds in %
  86. # Default values if not defined: 50/70/90
  87. careful=50
  88. warning=70
  89. critical=90
  90. [load]
  91. # Define LOAD thresholds
  92. # Value * number of cores
  93. # Default values if not defined: 0.7/1.0/5.0 per number of cores
  94. # Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
  95. # http://www.linuxjournal.com/article/9001
  96. careful=0.7
  97. warning=1.0
  98. critical=5.0
  99. #log=False
  100. [network]
  101. # Default bitrate thresholds in % of the network interface speed
  102. # Default values if not defined: 70/80/90
  103. rx_careful=70
  104. rx_warning=80
  105. rx_critical=90
  106. tx_careful=70
  107. tx_warning=80
  108. tx_critical=90
  109. # Define the list of hidden network interfaces (comma-separated regexp)
  110. #hide=docker.*,lo
  111. # WLAN 0 alias
  112. #wlan0_alias=Wireless IF
  113. # It is possible to overwrite the bitrate thresholds per interface
  114. # WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
  115. #wlan0_rx_careful=4000000
  116. #wlan0_rx_warning=5000000
  117. #wlan0_rx_critical=6000000
  118. #wlan0_rx_log=True
  119. #wlan0_tx_careful=700000
  120. #wlan0_tx_warning=900000
  121. #wlan0_tx_critical=1000000
  122. #wlan0_tx_log=True
  123. [wifi]
  124. # Define the list of hidden wireless network interfaces (comma-separated regexp)
  125. hide=lo,docker.*
  126. # Define SIGNAL thresholds in db (lower is better...)
  127. # Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength
  128. careful=-65
  129. warning=-75
  130. critical=-85
  131. [diskio]
  132. # Define the list of hidden disks (comma-separated regexp)
  133. #hide=sda2,sda5,loop.*
  134. hide=loop.*
  135. # Alias for sda1
  136. #sda1_alias=IntDisk
  137. [fs]
  138. # Define the list of hidden file system (comma-separated regexp)
  139. #hide=/boot.*
  140. # Define filesystem space thresholds in %
  141. # Default values if not defined: 50/70/90
  142. # It is also possible to define per mount point value
  143. # Example: /_careful=40
  144. careful=50
  145. warning=70
  146. critical=90
  147. # Allow additional file system types (comma-separated FS type)
  148. #allow=zfs
  149. [folders]
  150. # Define a folder list to monitor
  151. # The list is composed of items (list_#nb <= 10)
  152. # An item is defined by:
  153. # * path: absolute path
  154. # * careful: optional careful threshold (in MB)
  155. # * warning: optional warning threshold (in MB)
  156. # * critical: optional critical threshold (in MB)
  157. #folder_1_path=/tmp
  158. #folder_1_careful=2500
  159. #folder_1_warning=3000
  160. #folder_1_critical=3500
  161. #folder_2_path=/home/nicolargo/Videos
  162. #folder_2_warning=17000
  163. #folder_2_critical=20000
  164. #folder_3_path=/nonexisting
  165. #folder_4_path=/root
  166. [sensors]
  167. # Sensors core thresholds (in Celsius...)
  168. # Default values if not defined: 60/70/80
  169. temperature_core_careful=60
  170. temperature_core_warning=70
  171. temperature_core_critical=80
  172. # Temperatures threshold in °C for hddtemp
  173. # Default values if not defined: 45/52/60
  174. temperature_hdd_careful=45
  175. temperature_hdd_warning=52
  176. temperature_hdd_critical=60
  177. # Battery threshold in %
  178. battery_careful=80
  179. battery_warning=90
  180. battery_critical=95
  181. # Sensors alias
  182. #temp1_alias=Motherboard 0
  183. #temp2_alias=Motherboard 1
  184. #core 0_alias=CPU Core 0
  185. #core 1_alias=CPU Core 1
  186. [processlist]
  187. # Define CPU/MEM (per process) thresholds in %
  188. # Default values if not defined: 50/70/90
  189. cpu_careful=50
  190. cpu_warning=70
  191. cpu_critical=90
  192. mem_careful=50
  193. mem_warning=70
  194. mem_critical=90
  195. #
  196. # Nice priorities range from -20 to 19.
  197. # Configure nice levels using a comma separated list.
  198. #
  199. # Nice: Example 1, non-zero is warning (default behavior)
  200. nice_warning=-20,-19,-18,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19
  201. #
  202. # Nice: Example 2, low priority processes escalate from careful to critical
  203. #nice_careful=1,2,3,4,5,6,7,8,9
  204. #nice_warning=10,11,12,13,14
  205. #nice_critical=15,16,17,18,19
  206. [ports]
  207. # Ports scanner plugin configuration
  208. # Interval in second between two scans
  209. refresh=30
  210. # Set the default timeout (in second) for a scan (can be overwritten in the scan list)
  211. timeout=3
  212. # If port_default_gateway is True, add the default gateway on top of the scan list
  213. port_default_gateway=True
  214. #
  215. # Define the scan list (1 < x < 255)
  216. # port_x_host (name or IP) is mandatory
  217. # port_x_port (TCP port number) is optional (if not set, use ICMP)
  218. # port_x_description is optional (if not set, define to host:port)
  219. # port_x_timeout is optional and overwrite the default timeout value
  220. # port_x_rtt_warning is optional and defines the warning threshold in ms
  221. #
  222. #port_1_host=192.168.0.1
  223. #port_1_port=80
  224. #port_1_description=Home Box
  225. #port_1_timeout=1
  226. #port_2_host=www.free.fr
  227. #port_2_description=My ISP
  228. #port_3_host=www.google.com
  229. #port_3_description=Internet ICMP
  230. #port_3_rtt_warning=1000
  231. #port_4_description=Internet Web
  232. #port_4_host=www.google.com
  233. #port_4_port=80
  234. #port_4_rtt_warning=1000
  235. #
  236. # Define Web (URL) monitoring list (1 < x < 255)
  237. # web_x_url is the URL to monitor (example: http://my.site.com/folder)
  238. # web_x_description is optional (if not set, define to URL)
  239. # web_x_timeout is optional and overwrite the default timeout value
  240. # web_x_rtt_warning is optional and defines the warning respond time in ms (approximatively)
  241. #
  242. #web_1_url=https://blog.nicolargo.com
  243. #web_1_description=My Blog
  244. #web_1_rtt_warning=3000
  245. #web_2_url=https://github.com
  246. #web_3_url=http://www.google.fr
  247. #web_3_description=Google Fr
  248. #web_4_url=https://blog.nicolargo.com/nonexist
  249. #web_4_description=Intranet
  250. [docker]
  251. # Thresholds for CPU and MEM (in %)
  252. #cpu_careful=50
  253. #cpu_warning=70
  254. #cpu_critical=90
  255. #mem_careful=20
  256. #mem_warning=50
  257. #mem_critical=70
  258. #
  259. # Per container thresholds
  260. #containername_cpu_careful=10
  261. #containername_cpu_warning=20
  262. #containername_cpu_critical=30
  263. #
  264. # By default, Glances only display running containers
  265. # Set the following key to True to display all containers
  266. all=False
  267. ##############################################################################
  268. # Client/server
  269. ##############################################################################
  270. [serverlist]
  271. # Define the static servers list
  272. #server_1_name=localhost
  273. #server_1_alias=My local PC
  274. #server_1_port=61209
  275. #server_2_name=localhost
  276. #server_2_port=61235
  277. #server_3_name=192.168.0.17
  278. #server_3_alias=Another PC on my network
  279. #server_3_port=61209
  280. #server_4_name=pasbon
  281. #server_4_port=61237
  282. [passwords]
  283. # Define the passwords list
  284. # Syntax: host=password
  285. # Where: host is the hostname
  286. # password is the clear password
  287. # Additionally (and optionally) a default password could be defined
  288. #localhost=abc
  289. #default=defaultpassword
  290. ##############################################################################
  291. # Exports
  292. ##############################################################################
  293. [graph]
  294. # Configuration for the --export graph option
  295. # Set the path where the graph (.svg files) will be created
  296. # Can be overwrite by the --graph-path command line option
  297. path=/tmp
  298. # It is possible to generate the graphs automatically by setting the
  299. # generate_every to a non zero value corresponding to the seconds between
  300. # two generation. Set it to 0 to disable graph auto generation.
  301. generate_every=60
  302. # See followings configuration keys definitions in the Pygal lib documentation
  303. # http://pygal.org/en/stable/documentation/index.html
  304. width=800
  305. height=600
  306. style=DarkStyle
  307. [influxdb]
  308. # Configuration for the --export influxdb option
  309. # https://influxdb.com/
  310. host=localhost
  311. port=8086
  312. user=root
  313. password=root
  314. db=glances
  315. # Prefix will be added for all measurement name
  316. # Ex: prefix=foo
  317. # => foo.cpu
  318. # => foo.mem
  319. # You can also use dynamic values
  320. #prefix=`hostname`
  321. prefix=localhost
  322. # Tags will be added for all measurements
  323. #tags=foo:bar,spam:eggs
  324. # You can also use dynamic values
  325. #tags=system:`uname -s`
  326. [cassandra]
  327. # Configuration for the --export cassandra option
  328. # Also works for the ScyllaDB
  329. # https://influxdb.com/ or http://www.scylladb.com/
  330. host=localhost
  331. port=9042
  332. protocol_version=3
  333. keyspace=glances
  334. replication_factor=2
  335. # If not define, table name is set to host key
  336. table=localhost
  337. [opentsdb]
  338. # Configuration for the --export opentsdb option
  339. # http://opentsdb.net/
  340. host=localhost
  341. port=4242
  342. #prefix=glances
  343. #tags=foo:bar,spam:eggs
  344. [statsd]
  345. # Configuration for the --export statsd option
  346. # https://github.com/etsy/statsd
  347. host=localhost
  348. port=8125
  349. #prefix=glances
  350. [elasticsearch]
  351. # Configuration for the --export elasticsearch option
  352. # Data are available via the ES RESTful API. ex: URL/<index>/cpu/system
  353. # https://www.elastic.co
  354. host=localhost
  355. port=9200
  356. index=glances
  357. [riemann]
  358. # Configuration for the --export riemann option
  359. # http://riemann.io
  360. host=localhost
  361. port=5555
  362. [rabbitmq]
  363. # Configuration for the --export rabbitmq option
  364. host=localhost
  365. port=5672
  366. user=guest
  367. password=guest
  368. queue=glances_queue
  369. [mqtt]
  370. # Configuration for the --export mqtt option
  371. host=localhost
  372. port=8883
  373. user=guest
  374. password=guest
  375. topic=glances
  376. [couchdb]
  377. # Configuration for the --export couchdb option
  378. # https://www.couchdb.org
  379. host=localhost
  380. port=5984
  381. db=glances
  382. # user and password are optional (comment if not configured on the server side)
  383. #user=root
  384. #password=root
  385. [kafka]
  386. # Configuration for the --export kafka option
  387. # http://kafka.apache.org/
  388. host=localhost
  389. port=9092
  390. topic=glances
  391. #compression=gzip
  392. [zeromq]
  393. # Configuration for the --export zeromq option
  394. # http://www.zeromq.org
  395. # Use * to bind on all interfaces
  396. host=*
  397. port=5678
  398. # Glances envelopes the stats in a publish message with two frames:
  399. # - First frame containing the following prefix (STRING)
  400. # - Second frame with the Glances plugin name (STRING)
  401. # - Third frame with the Glances plugin stats (JSON)
  402. prefix=G
  403. [prometheus]
  404. # Configuration for the --export prometheus option
  405. # https://prometheus.io
  406. # Create a Prometheus exporter listening on localhost:9091 (default configuration)
  407. # Metric are exporter using the following name:
  408. # <prefix>_<plugin>_<stats> (all specials character are replaced by '_')
  409. # Note: You should add this exporter to your Prometheus server configuration:
  410. # scrape_configs:
  411. # - job_name: 'glances_exporter'
  412. # scrape_interval: 5s
  413. # static_configs:
  414. # - targets: ['localhost:9091']
  415. host=localhost
  416. port=9091
  417. prefix=glances
  418. # Labels will be added for all measurements
  419. #labels=foo:bar,spam:eggs
  420. # You can also use dynamic values
  421. #labels=system:`uname -s`
  422. [restful]
  423. # Configuration for the --export RESTful option
  424. # Example, export to http://localhost:6789/
  425. host=localhost
  426. port=6789
  427. protocol=http
  428. path=/
  429. ##############################################################################
  430. # AMPS
  431. # * enable: Enable (true) or disable (false) the AMP
  432. # * regex: Regular expression to filter the process(es)
  433. # * refresh: The AMP is executed every refresh seconds
  434. # * one_line: (optional) Force (if true) the AMP to be displayed in one line
  435. # * command: (optional) command to execute when the process is detected (thk to the regex)
  436. # * countmin: (optional) minimal number of processes
  437. # A warning will be displayed if number of process < count
  438. # * countmax: (optional) maximum number of processes
  439. # A warning will be displayed if number of process > count
  440. # * <foo>: Others variables can be defined and used in the AMP script
  441. ##############################################################################
  442. [amp_dropbox]
  443. # Use the default AMP (no dedicated AMP Python script)
  444. # Check if the Dropbox daemon is running
  445. # Every 3 seconds, display the 'dropbox status' command line
  446. enable=false
  447. regex=.*dropbox.*
  448. refresh=3
  449. one_line=false
  450. command=dropbox status
  451. countmin=1
  452. [amp_python]
  453. # Use the default AMP (no dedicated AMP Python script)
  454. # Monitor all the Python scripts
  455. # Alert if more than 20 Python scripts are running
  456. enable=false
  457. regex=.*python.*
  458. refresh=3
  459. countmax=20
  460. [amp_nginx]
  461. # Use the NGinx AMP
  462. # Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
  463. enable=false
  464. regex=\/usr\/sbin\/nginx
  465. refresh=60
  466. one_line=false
  467. status_url=http://localhost/nginx_status
  468. [amp_systemd]
  469. # Use the Systemd AMP
  470. enable=false
  471. regex=\/lib\/systemd\/systemd
  472. refresh=30
  473. one_line=true
  474. systemctl_cmd=/bin/systemctl --plain
  475. [amp_systemv]
  476. # Use the Systemv AMP
  477. enable=false
  478. regex=\/sbin\/init
  479. refresh=30
  480. one_line=true
  481. service_cmd=/usr/bin/service --status-all