glances.conf 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. ##############################################################################
  2. # Globals Glances parameters
  3. ##############################################################################
  4. [global]
  5. # Does Glances should check if a newer version is available on PyPI ?
  6. check_update=false
  7. # History size (maximum number of values)
  8. # Default glances history size to 0
  9. # https://github.com/hassio-addons/addon-glances/issues/61
  10. # https://github.com/nicolargo/glances/issues/1341
  11. history_size=0
  12. ##############################################################################
  13. # User interface
  14. ##############################################################################
  15. [outputs]
  16. # Theme name for the Curses interface: black or white
  17. curse_theme=black
  18. # Limit the number of processes to display in the WebUI
  19. max_processes_display=30
  20. ##############################################################################
  21. # plugins
  22. ##############################################################################
  23. [quicklook]
  24. # Define CPU, MEM and SWAP thresholds in %
  25. cpu_careful=50
  26. cpu_warning=70
  27. cpu_critical=90
  28. mem_careful=50
  29. mem_warning=70
  30. mem_critical=90
  31. swap_careful=50
  32. swap_warning=70
  33. swap_critical=90
  34. [cpu]
  35. # Default values if not defined: 50/70/90 (except for iowait)
  36. user_careful=50
  37. user_warning=70
  38. user_critical=90
  39. #user_log=False
  40. #user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
  41. system_careful=50
  42. system_warning=70
  43. system_critical=90
  44. steal_careful=50
  45. steal_warning=70
  46. steal_critical=90
  47. #steal_log=True
  48. # I/O wait percentage should be lower than 1/# (Logical CPU cores)
  49. # Leave commented to just use the default config (1/#-20% / 1/#-10% / 1/#)
  50. #iowait_careful=30
  51. #iowait_warning=40
  52. #iowait_critical=50
  53. # Context switch limit (core / second)
  54. # Leave commented to just use the default config (critical is 50000*# (Logical CPU cores)
  55. #ctx_switches_careful=10000
  56. #ctx_switches_warning=12000
  57. #ctx_switches_critical=14000
  58. [percpu]
  59. # Define CPU thresholds in %
  60. # Default values if not defined: 50/70/90
  61. user_careful=50
  62. user_warning=70
  63. user_critical=90
  64. iowait_careful=50
  65. iowait_warning=70
  66. iowait_critical=90
  67. system_careful=50
  68. system_warning=70
  69. system_critical=90
  70. [gpu]
  71. # Default processor values if not defined: 50/70/90
  72. proc_careful=50
  73. proc_warning=70
  74. proc_critical=90
  75. # Default memory values if not defined: 50/70/90
  76. mem_careful=50
  77. mem_warning=70
  78. mem_critical=90
  79. [mem]
  80. # Define RAM thresholds in %
  81. # Default values if not defined: 50/70/90
  82. careful=50
  83. #careful_action_repeat=echo {{percent}} >> /tmp/memory.alert
  84. warning=70
  85. critical=90
  86. [memswap]
  87. # Define SWAP thresholds in %
  88. # Default values if not defined: 50/70/90
  89. careful=50
  90. warning=70
  91. critical=90
  92. [load]
  93. # Define LOAD thresholds
  94. # Value * number of cores
  95. # Default values if not defined: 0.7/1.0/5.0 per number of cores
  96. # Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
  97. # http://www.linuxjournal.com/article/9001
  98. careful=0.7
  99. warning=1.0
  100. critical=5.0
  101. #log=False
  102. [network]
  103. # Default bitrate thresholds in % of the network interface speed
  104. # Default values if not defined: 70/80/90
  105. rx_careful=70
  106. rx_warning=80
  107. rx_critical=90
  108. tx_careful=70
  109. tx_warning=80
  110. tx_critical=90
  111. # Define the list of hidden network interfaces (comma-separated regexp)
  112. #hide=docker.*,lo
  113. # WLAN 0 alias
  114. #wlan0_alias=Wireless IF
  115. # It is possible to overwrite the bitrate thresholds per interface
  116. # WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
  117. #wlan0_rx_careful=4000000
  118. #wlan0_rx_warning=5000000
  119. #wlan0_rx_critical=6000000
  120. #wlan0_rx_log=True
  121. #wlan0_tx_careful=700000
  122. #wlan0_tx_warning=900000
  123. #wlan0_tx_critical=1000000
  124. #wlan0_tx_log=True
  125. [wifi]
  126. # Define the list of hidden wireless network interfaces (comma-separated regexp)
  127. hide=lo,docker.*
  128. # Define SIGNAL thresholds in db (lower is better...)
  129. # Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength
  130. careful=-65
  131. warning=-75
  132. critical=-85
  133. [diskio]
  134. # Define the list of hidden disks (comma-separated regexp)
  135. #hide=sda2,sda5,loop.*
  136. hide=loop.*
  137. # Alias for sda1
  138. #sda1_alias=IntDisk
  139. [fs]
  140. # Define the list of hidden file system (comma-separated regexp)
  141. #hide=/boot.*
  142. # Define filesystem space thresholds in %
  143. # Default values if not defined: 50/70/90
  144. # It is also possible to define per mount point value
  145. # Example: /_careful=40
  146. careful=50
  147. warning=70
  148. critical=90
  149. # Allow additional file system types (comma-separated FS type)
  150. #allow=zfs
  151. [folders]
  152. # Define a folder list to monitor
  153. # The list is composed of items (list_#nb <= 10)
  154. # An item is defined by:
  155. # * path: absolute path
  156. # * careful: optional careful threshold (in MB)
  157. # * warning: optional warning threshold (in MB)
  158. # * critical: optional critical threshold (in MB)
  159. folder_1_path=/config
  160. folder_1_careful=4096
  161. folder_1_warning=8196
  162. folder_1_critical=12228
  163. folder_2_path=/share
  164. folder_2_careful=4096
  165. folder_2_warning=8196
  166. folder_2_critical=12228
  167. folder_3_path=/backup
  168. folder_3_careful=4096
  169. folder_3_warning=8196
  170. folder_3_critical=12228
  171. folder_4_path=/media
  172. folder_4_careful=4096
  173. folder_4_warning=8196
  174. folder_4_critical=12228
  175. [sensors]
  176. # Sensors core thresholds (in Celsius...)
  177. # Default values if not defined: 60/70/80
  178. temperature_core_careful=60
  179. temperature_core_warning=70
  180. temperature_core_critical=80
  181. # Temperatures threshold in °C for hddtemp
  182. # Default values if not defined: 45/52/60
  183. temperature_hdd_careful=45
  184. temperature_hdd_warning=52
  185. temperature_hdd_critical=60
  186. # Battery threshold in %
  187. battery_careful=80
  188. battery_warning=90
  189. battery_critical=95
  190. # Sensors alias
  191. #temp1_alias=Motherboard 0
  192. #temp2_alias=Motherboard 1
  193. #core 0_alias=CPU Core 0
  194. #core 1_alias=CPU Core 1
  195. [processlist]
  196. # Define CPU/MEM (per process) thresholds in %
  197. # Default values if not defined: 50/70/90
  198. cpu_careful=50
  199. cpu_warning=70
  200. cpu_critical=90
  201. mem_careful=50
  202. mem_warning=70
  203. mem_critical=90
  204. #
  205. # Nice priorities range from -20 to 19.
  206. # Configure nice levels using a comma separated list.
  207. #
  208. # Nice: Example 1, non-zero is warning (default behavior)
  209. 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
  210. #
  211. # Nice: Example 2, low priority processes escalate from careful to critical
  212. #nice_careful=1,2,3,4,5,6,7,8,9
  213. #nice_warning=10,11,12,13,14
  214. #nice_critical=15,16,17,18,19
  215. [ports]
  216. # Ports scanner plugin configuration
  217. # Interval in second between two scans
  218. refresh=30
  219. # Set the default timeout (in second) for a scan (can be overwritten in the scan list)
  220. timeout=3
  221. # If port_default_gateway is True, add the default gateway on top of the scan list
  222. port_default_gateway=True
  223. #
  224. # Define the scan list (1 < x < 255)
  225. # port_x_host (name or IP) is mandatory
  226. # port_x_port (TCP port number) is optional (if not set, use ICMP)
  227. # port_x_description is optional (if not set, define to host:port)
  228. # port_x_timeout is optional and overwrite the default timeout value
  229. # port_x_rtt_warning is optional and defines the warning threshold in ms
  230. #
  231. #port_1_host=192.168.0.1
  232. #port_1_port=80
  233. #port_1_description=Home Box
  234. #port_1_timeout=1
  235. #port_2_host=www.free.fr
  236. #port_2_description=My ISP
  237. #port_3_host=www.google.com
  238. #port_3_description=Internet ICMP
  239. #port_3_rtt_warning=1000
  240. #port_4_description=Internet Web
  241. #port_4_host=www.google.com
  242. #port_4_port=80
  243. #port_4_rtt_warning=1000
  244. #
  245. # Define Web (URL) monitoring list (1 < x < 255)
  246. # web_x_url is the URL to monitor (example: http://my.site.com/folder)
  247. # web_x_description is optional (if not set, define to URL)
  248. # web_x_timeout is optional and overwrite the default timeout value
  249. # web_x_rtt_warning is optional and defines the warning respond time in ms (approximatively)
  250. #
  251. #web_1_url=https://blog.nicolargo.com
  252. #web_1_description=My Blog
  253. #web_1_rtt_warning=3000
  254. #web_2_url=https://github.com
  255. #web_3_url=http://www.google.fr
  256. #web_3_description=Google Fr
  257. #web_4_url=https://blog.nicolargo.com/nonexist
  258. #web_4_description=Intranet
  259. [docker]
  260. # Thresholds for CPU and MEM (in %)
  261. cpu_careful=50
  262. cpu_warning=70
  263. cpu_critical=90
  264. mem_careful=20
  265. mem_warning=50
  266. mem_critical=70
  267. #
  268. # Per container thresholds
  269. #containername_cpu_careful=10
  270. #containername_cpu_warning=20
  271. #containername_cpu_critical=30
  272. #
  273. # By default, Glances only display running containers
  274. # Set the following key to True to display all containers
  275. all=False
  276. ##############################################################################
  277. # Client/server
  278. ##############################################################################
  279. [serverlist]
  280. # Define the static servers list
  281. #server_1_name=localhost
  282. #server_1_alias=My local PC
  283. #server_1_port=61209
  284. #server_2_name=localhost
  285. #server_2_port=61235
  286. #server_3_name=192.168.0.17
  287. #server_3_alias=Another PC on my network
  288. #server_3_port=61209
  289. #server_4_name=pasbon
  290. #server_4_port=61237
  291. [passwords]
  292. # Define the passwords list
  293. # Syntax: host=password
  294. # Where: host is the hostname
  295. # password is the clear password
  296. # Additionally (and optionally) a default password could be defined
  297. #localhost=abc
  298. #default=defaultpassword