Advertisement
nrapopor

glances.conf

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