Advertisement
cribbageSTARSHIP

glances.conf

Oct 12th, 2024
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.52 KB | None | 0 0
  1. ##############################################################################
  2. # Globals Glances parameters
  3. ##############################################################################
  4.  
  5. [global]
  6. # Stats refresh rate (default is a minimum of 2 seconds)
  7. # Can be overwrite by the -t <sec> option
  8. # It is also possible to overwrite it in each plugin sections
  9. refresh=2
  10. # Does Glances should check if a newer version is available on PyPI ?
  11. check_update=true
  12. # History size (maximum number of values)
  13. # Default is 1200 values (~1h with the default refresh rate)
  14. history_size=1200
  15. # Set the way Glances should display the date (default is %Y-%m-%d %H:%M:%S %Z)
  16. # strftime_format=%Y-%m-%d %H:%M:%S %Z
  17. # Define external directory for loading additional plugins
  18. # The layout follows the glances standard for plugin definitions
  19. #plugin_dir=/home/user/dev/plugins
  20.  
  21. ##############################################################################
  22. # User interface
  23. ##############################################################################
  24.  
  25. [outputs]
  26. # Options for all UIs
  27. #--------------------
  28. # Separator in the Curses and WebUI interface (between top and others plugins)
  29. #separator=True
  30. # Set the the Curses and WebUI interface left menu plugin list (comma-separated)
  31. #left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now
  32. # Limit the number of processes to display (in the WebUI)
  33. max_processes_display=25
  34. # Options for WebUI
  35. #------------------
  36. # Set URL prefix for the WebUI and the API
  37. # Example: url_prefix=/glances/ => http://localhost/glances/
  38. # Note: The final / is mandatory
  39. # Default is no prefix (/)
  40. #url_prefix=/glances/
  41. # Set root path for WebUI statics files
  42. # Why ? On Debian system, WebUI statics files are not provided.
  43. # You can download it in a specific folder
  44. # thanks to https://github.com/nicolargo/glances/issues/2021
  45. # then configure this folder with the webui_root_path key
  46. # Default is folder where glances_restfull_api.py is hosted
  47. #webui_root_path=
  48. # CORS options
  49. # Comma separated list of origins that should be permitted to make cross-origin requests.
  50. # Default is *
  51. #cors_origins=*
  52. # Indicate that cookies should be supported for cross-origin requests.
  53. # Default is True
  54. #cors_credentials=True
  55. # Comma separated list of HTTP methods that should be allowed for cross-origin requests.
  56. # Default is *
  57. #cors_methods=*
  58. # Comma separated list of HTTP request headers that should be supported for cross-origin requests.
  59. # Default is *
  60. #cors_headers=*
  61.  
  62. ##############################################################################
  63. # Plugins
  64. ##############################################################################
  65.  
  66. [quicklook]
  67. # Set to true to disable a plugin
  68. # Note: you can also disable it from the command line (see --disable-plugin <plugin_name>)
  69. disable=False
  70. # Stats list (default is cpu,mem,load)
  71. # Available stats are: cpu,mem,load,swap
  72. list=cpu,mem,load
  73. # Graphical bar char used in the terminal user interface (default is |)
  74. bar_char=|
  75. # Define CPU, MEM and SWAP thresholds in %
  76. cpu_careful=50
  77. cpu_warning=70
  78. cpu_critical=90
  79. mem_careful=50
  80. mem_warning=70
  81. mem_critical=90
  82. swap_careful=50
  83. swap_warning=70
  84. swap_critical=90
  85. # Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
  86. # With 1 CPU core, the load should be lower than 1.00 ~ 100%
  87. load_careful=70
  88. load_warning=100
  89. load_critical=500
  90.  
  91. [system]
  92. # This plugin display the first line in the Glances UI with:
  93. # Hostname / Operating system name / Architecture information
  94. # Set to true to disable a plugin
  95. disable=False
  96. # Default refresh rate is 60 seconds
  97. #refresh=60
  98. # System information to display (a string where {key} will be replaced by the value)
  99. # Available information are: hostname, os_name, os_version, os_arch, linux_distro, platform
  100. #system_info_msg= | My {os_name} system |
  101.  
  102. [cpu]
  103. disable=False
  104. # See https://scoutapm.com/blog/slow_server_flow_chart
  105. #
  106. # I/O wait percentage should be lower than 1/# (# = Logical CPU cores)
  107. # Leave commented to just use the default config:
  108. # Careful=1/#*100-20% / Warning=1/#*100-10% / Critical=1/#*100
  109. #iowait_careful=30
  110. #iowait_warning=40
  111. #iowait_critical=50
  112. #
  113. # Total % is 100 - idle
  114. total_careful=65
  115. total_warning=75
  116. total_critical=85
  117. total_log=True
  118. #
  119. # Default values if not defined: 50/70/90 (except for iowait)
  120. user_careful=50
  121. user_warning=70
  122. user_critical=90
  123. user_log=False
  124. #user_critical_action=echo {{user}} {{value}} {{max}} > /tmp/cpu.alert
  125. #
  126. system_careful=50
  127. system_warning=70
  128. system_critical=90
  129. system_log=False
  130. #
  131. steal_careful=50
  132. steal_warning=70
  133. steal_critical=90
  134. #steal_log=True
  135. #
  136. # Context switch limit (core / second)
  137. # Leave commented to just use the default config critical is 50000*(Logical CPU cores)
  138. #ctx_switches_careful=10000
  139. #ctx_switches_warning=12000
  140. #ctx_switches_critical=14000
  141.  
  142. [percpu]
  143. disable=False
  144. # Define the maximum number of CPU displayed at a time
  145. # If the number of CPU is higher than the one configured in max_cpu_display then:
  146. # - display top 'max_cpu_display' (sorted by CPU consumption)
  147. # - a last line will be added with the mean of all other CPUs
  148. max_cpu_display=4
  149. # Define CPU thresholds in %
  150. # Default values if not defined: 50/70/90
  151. user_careful=50
  152. user_warning=70
  153. user_critical=90
  154. iowait_careful=50
  155. iowait_warning=70
  156. iowait_critical=90
  157. system_careful=50
  158. system_warning=70
  159. system_critical=90
  160.  
  161. [gpu]
  162. disable=False
  163. # Default processor values if not defined: 50/70/90
  164. proc_careful=50
  165. proc_warning=70
  166. proc_critical=90
  167. # Default memory values if not defined: 50/70/90
  168. mem_careful=50
  169. mem_warning=70
  170. mem_critical=90
  171. # Temperature
  172. temperature_careful=60
  173. temperature_warning=70
  174. temperature_critical=80
  175.  
  176. [mem]
  177. disable=False
  178. # Define RAM thresholds in %
  179. # Default values if not defined: 50/70/90
  180. careful=50
  181. #careful_action_repeat=echo {{percent}} >> /tmp/memory.alert
  182. warning=70
  183. critical=90
  184.  
  185. [memswap]
  186. disable=False
  187. # Define SWAP thresholds in %
  188. # Default values if not defined: 50/70/90
  189. careful=50
  190. warning=70
  191. critical=90
  192.  
  193. [load]
  194. disable=False
  195. # Define LOAD thresholds
  196. # Value * number of cores
  197. # Default values if not defined: 0.7/1.0/5.0 per number of cores
  198. # Source: http://blog.scoutapp.com/articles/2009/07/31/understanding-load-averages
  199. # http://www.linuxjournal.com/article/9001
  200. careful=0.7
  201. warning=1.0
  202. critical=5.0
  203. #log=False
  204.  
  205. [network]
  206. disable=False
  207. # Default bitrate thresholds in % of the network interface speed
  208. # Default values if not defined: 70/80/90
  209. rx_careful=70
  210. rx_warning=80
  211. rx_critical=90
  212. tx_careful=70
  213. tx_warning=80
  214. tx_critical=90
  215. # Define the list of hidden network interfaces (comma-separated regexp)
  216. hide=docker.*,lo,docker0, veth*, br*
  217. # Define the list of wireless network interfaces to be show (comma-separated)
  218. show=eno1,enp3s0f0,enp3s0f1
  219. # Automatically hide interface not up (default is False)
  220. hide_no_up=True
  221. # Automatically hide interface with no IP address (default is False)
  222. hide_no_ip=True
  223. # Set hide_zero to True to automatically hide interface with no traffic
  224. hide_zero=False
  225. # It is possible to overwrite the bitrate thresholds per interface
  226. # WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
  227. #wlan0_rx_careful=4000000
  228. #wlan0_rx_warning=5000000
  229. #wlan0_rx_critical=6000000
  230. #wlan0_rx_log=True
  231. #wlan0_tx_careful=700000
  232. #wlan0_tx_warning=900000
  233. #wlan0_tx_critical=1000000
  234. #wlan0_tx_log=True
  235. # Alias for network interface name
  236. #alias=wlp2s0:WIFI
  237.  
  238. [ip]
  239. # Disable display of private IP address
  240. disable=False
  241. # Configure the online service where public IP address information will be downloaded
  242. # - public_disabled: Disable public IP address information (set to True for offline platform)
  243. # - public_refresh_interval: Refresh interval between to calls to the online service
  244. # - public_api: URL of the API (the API should return an JSON object)
  245. # - public_username: Login for the online service (if needed)
  246. # - public_password: Password for the online service (if needed)
  247. # - public_field: Field name of the public IP address in onlibe service JSON message
  248. # - public_template: Template to build the public message
  249. #
  250. # Example for IPLeak service:
  251. # public_api=https://ipv4.ipleak.net/json/
  252. # public_field=ip
  253. # public_template={ip} {continent_name}/{country_name}/{city_name}
  254. #
  255. public_disabled=True
  256. public_refresh_interval=300
  257. public_api=https://ipv4.ipleak.net/json/
  258. #public_username=<myname>
  259. #public_password=<mysecret>
  260. public_field=ip
  261. public_template=America/Canada/Toronto
  262.  
  263. [connections]
  264. # Display additional information about TCP connections
  265. # This plugin is disabled by default because it consumes lots of CPU
  266. disable=True
  267. # nf_conntrack thresholds in %
  268. nf_conntrack_percent_careful=70
  269. nf_conntrack_percent_warning=80
  270. nf_conntrack_percent_critical=90
  271.  
  272. [wifi]
  273. disable=true
  274. # Define SIGNAL thresholds in dBm (lower is better...)
  275. # Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength
  276. careful=-65
  277. warning=-75
  278. critical=-85
  279.  
  280. [diskio]
  281. disable=False
  282. # Define the list of hidden disks (comma-separated regexp)
  283. #hide=sda2,sda5,loop.*
  284. hide=loop.*,/dev/loop.*
  285. # Set hide_zero to True to automatically hide disk with no read/write
  286. hide_zero=False
  287. # Define the list of disks to be show (comma-separated)
  288. show=sda.*,nvme0n1.*
  289. # Alias for sda1 and sdb1
  290. #alias=sda1:SystemDisk,sdb1:DataDisk
  291.  
  292. [fs]
  293. disable=False
  294. # Define the list of file system to hide (comma-separated regexp)
  295. hide=/boot.*,.*/snap.*
  296. # Define the list of file system to show (comma-separated regexp)
  297. show=/,/home/prizm/sff01
  298. # Define filesystem space thresholds in %
  299. # Default values if not defined: 50/70/90
  300. # It is also possible to define per mount point value
  301. # Example: /_careful=40
  302. careful=50
  303. warning=70
  304. critical=90
  305. allow=zfs,ext4
  306. # Allow additional file system types (comma-separated FS type)
  307. #allow=shm
  308. # Alias for root file system
  309. #alias=/:Root
  310.  
  311. [irq]
  312. # Documentation: https://glances.readthedocs.io/en/latest/aoa/irq.html
  313. # This plugin is disabled by default
  314. disable=True
  315.  
  316. [folders]
  317. # Documentation: https://glances.readthedocs.io/en/latest/aoa/folders.html
  318. disable=False
  319. # Define a folder list to monitor
  320. # The list is composed of items (list_#nb <= 10)
  321. # An item is defined by:
  322. # * path: absolute path
  323. # * careful: optional careful threshold (in MB)
  324. # * warning: optional warning threshold (in MB)
  325. # * critical: optional critical threshold (in MB)
  326. # * refresh: interval in second between two refreshes
  327. #folder_1_path=/tmp
  328. #folder_1_careful=2500
  329. #folder_1_warning=3000
  330. #folder_1_critical=3500
  331. #folder_1_refresh=60
  332. #folder_2_path=/home/nicolargo/Videos
  333. #folder_2_warning=17000
  334. #folder_2_critical=20000
  335. #folder_3_path=/nonexisting
  336. #folder_4_path=/root
  337.  
  338. [cloud]
  339. # Documentation: https://glances.readthedocs.io/en/latest/aoa/cloud.html
  340. # This plugin is disabled by default
  341. disable=True
  342.  
  343. [raid]
  344. # Documentation: https://glances.readthedocs.io/en/latest/aoa/raid.html
  345. # This plugin is disabled by default
  346. disable=True
  347.  
  348. [smart]
  349. # Documentation: https://glances.readthedocs.io/en/latest/aoa/smart.html
  350. # This plugin is disabled by default
  351. disable=True
  352.  
  353. [hddtemp]
  354. disable=False
  355. # Define hddtemp server IP and port (default is 127.0.0.1 and 7634 (TCP))
  356. host=127.0.0.1
  357. port=7634
  358.  
  359. [sensors]
  360. # Documentation: https://glances.readthedocs.io/en/latest/aoa/sensors.html
  361. disable=False
  362. # Set the refresh multiplicator for the sensors
  363. # By default refresh every Glances refresh * 3 (increase to reduce CPU consumption)
  364. #refresh=3
  365. # Hide some sensors (comma separated list of regexp)
  366. hide=unknown.*
  367. # Show only the following sensors (comma separated list of regexp)
  368. #show=CPU.*
  369. # Sensors core thresholds (in Celsius...)
  370. # Default values are grabbed from the system
  371. #temperature_core_careful=45
  372. #temperature_core_warning=65
  373. #temperature_core_critical=80
  374. # Temperatures threshold in °C for hddtemp
  375. # Default values if not defined: 45/52/60
  376. temperature_hdd_careful=45
  377. temperature_hdd_warning=52
  378. temperature_hdd_critical=60
  379. # Battery threshold in %
  380. battery_careful=80
  381. battery_warning=90
  382. battery_critical=95
  383. # Fan speed threshold in RPM
  384. #fan_speed_careful=100
  385. # Sensors alias
  386. #alias=core 0:CPU Core 0,core 1:CPU Core 1
  387.  
  388. [processcount]
  389. disable=False
  390. # If you want to change the refresh rate of the processing list, please uncomment:
  391. #refresh=10
  392.  
  393. [processlist]
  394. disable=False
  395. # Sort key: if not defined, the sort is automatically done by Glances (recommended)
  396. # Should be one of the following:
  397. # cpu_percent, memory_percent, io_counters, name, cpu_times, username
  398. #sort_key=memory_percent
  399. # Define CPU/MEM (per process) thresholds in %
  400. # Default values if not defined: 50/70/90
  401. cpu_careful=50
  402. cpu_warning=70
  403. cpu_critical=90
  404. mem_careful=50
  405. mem_warning=70
  406. mem_critical=90
  407. #
  408. # Nice priorities range from -20 to 19.
  409. # Configure nice levels using a comma-separated list.
  410. #
  411. # Nice: Example 1, non-zero is warning (default behavior)
  412. 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
  413. #
  414. # Nice: Example 2, low priority processes escalate from careful to critical
  415. #nice_careful=1,2,3,4,5,6,7,8,9
  416. #nice_warning=10,11,12,13,14
  417. #nice_critical=15,16,17,18,19
  418. #
  419. # Define the list of processes to export using:
  420. # a comma-separated list of Glances filter
  421. #export=.*firefox.*,pid:1234
  422.  
  423. [ports]
  424. disable=False
  425. # Interval in second between two scans
  426. # Ports scanner plugin configuration
  427. refresh=30
  428. # Set the default timeout (in second) for a scan (can be overwritten in the scan list)
  429. timeout=3
  430. # If port_default_gateway is True, add the default gateway on top of the scan list
  431. port_default_gateway=True
  432. #
  433. # Define the scan list (1 < x < 255)
  434. # port_x_host (name or IP) is mandatory
  435. # port_x_port (TCP port number) is optional (if not set, use ICMP)
  436. # port_x_description is optional (if not set, define to host:port)
  437. # port_x_timeout is optional and overwrite the default timeout value
  438. # port_x_rtt_warning is optional and defines the warning threshold in ms
  439. #
  440. #port_1_host=192.168.0.1
  441. #port_1_port=80
  442. #port_1_description=Home Box
  443. #port_1_timeout=1
  444. #port_2_host=www.free.fr
  445. #port_2_description=My ISP
  446. #port_3_host=www.google.com
  447. #port_3_description=Internet ICMP
  448. #port_3_rtt_warning=1000
  449. #port_4_description=Internet Web
  450. #port_4_host=www.google.com
  451. #port_4_port=80
  452. #port_4_rtt_warning=1000
  453. #
  454. # Define Web (URL) monitoring list (1 < x < 255)
  455. # web_x_url is the URL to monitor (example: http://my.site.com/folder)
  456. # web_x_description is optional (if not set, define to URL)
  457. # web_x_timeout is optional and overwrite the default timeout value
  458. # web_x_rtt_warning is optional and defines the warning respond time in ms (approximately)
  459. #
  460. #web_1_url=https://blog.nicolargo.com
  461. #web_1_description=My Blog
  462. #web_1_rtt_warning=3000
  463. #web_2_url=https://github.com
  464. #web_3_url=http://www.google.fr
  465. #web_3_description=Google Fr
  466. #web_4_url=https://blog.nicolargo.com/nonexist
  467. #web_4_description=Intranet
  468.  
  469. [vms]
  470. disable=False
  471. # Define the maximum VMs size name (default is 20 chars)
  472. max_name_size=20
  473. # By default, Glances only display running VMs with states: 'Running', 'Starting' or 'Restarting'
  474. # Set the following key to True to display all VMs regarding their states
  475. all=False
  476.  
  477. [containers]
  478. disable=False
  479. # Only show specific containers (comma-separated list of container name or regular expression)
  480. # Comment this line to display all containers (default configuration)
  481. ; show=telegraf
  482. # Hide some containers (comma-separated list of container name or regular expression)
  483. # Comment this line to display all containers (default configuration)
  484. ; hide=telegraf
  485. # Define the maximum docker size name (default is 20 chars)
  486. max_name_size=20
  487. ; cpu_careful=50
  488. # Thresholds for CPU and MEM (in %)
  489. ; cpu_warning=70
  490. ; cpu_critical=90
  491. ; mem_careful=20
  492. ; mem_warning=50
  493. ; mem_critical=70
  494. #
  495. # Per container thresholds
  496. ; containername_cpu_careful=10
  497. ; containername_cpu_warning=20
  498. ; containername_cpu_critical=30
  499. #
  500. # By default, Glances only display running containers
  501. # Set the following key to True to display all containers
  502. all=False
  503. # Define Podman sock
  504. ; podman_sock=unix:///run/user/1000/podman/podman.sock
  505.  
  506. [amps]
  507. # AMPs configuration are defined in the bottom of this file
  508. disable=False
  509.  
  510. [alert]
  511. disable=False
  512. # Maximum number of events to display (default is 10 events)
  513. ;max_events=10
  514. # Minimum duration for an event to be taken into account (default is 6 seconds)
  515. ;min_duration=6
  516. # Minimum time between two events of the same type (default is 6 seconds)
  517. # This is used to avoid too many alerts for the same event
  518. # Events will be merged
  519. ;min_interval=6
  520.  
  521. ##############################################################################
  522. # Browser mode - Static servers definition
  523. ##############################################################################
  524.  
  525. [serverlist]
  526. # Define columns (comma separated list of <plugin>:<field>:(<key>)) to grab/display
  527. # Default is: system:hr_name,load:min5,cpu:total,mem:percent
  528. # You can also add stats with key, like sensors:value:Ambient (key is case sensitive)
  529. #columns=system:hr_name,load:min5,cpu:total,mem:percent,memswap:percent
  530. # Define the static servers list
  531. #server_1_name=localhost
  532. #server_1_alias=My local PC
  533. #server_1_port=61209
  534. #server_2_name=localhost
  535. #server_2_port=61235
  536. #server_3_name=192.168.0.17
  537. #server_3_alias=Another PC on my network
  538. #server_3_port=61209
  539. #server_4_name=pasbon
  540. #server_4_port=61237
  541.  
  542. [passwords]
  543. # Define the passwords list related to the [serverlist] section
  544. # Syntax: host=password
  545. # Where: host is the hostname
  546. # password is the clear password
  547. # Additionally (and optionally) a default password could be defined
  548. #localhost=abc
  549. #default=defaultpassword
  550. #
  551. # Define the path of the local '.pwd' file (default is system one)
  552. #local_password_path=~/.config/glances
  553.  
  554. ##############################################################################
  555. # Exports
  556. ##############################################################################
  557.  
  558. [graph]
  559. # Configuration for the --export graph option
  560. # Set the path where the graph (.svg files) will be created
  561. # Can be overwrite by the --graph-path command line option
  562. path=/tmp
  563. # It is possible to generate the graphs automatically by setting the
  564. # generate_every to a non zero value corresponding to the seconds between
  565. # two generation. Set it to 0 to disable graph auto generation.
  566. generate_every=0
  567. # See following configuration keys definitions in the Pygal lib documentation
  568. # http://pygal.org/en/stable/documentation/index.html
  569. width=800
  570. height=600
  571. style=DarkStyle
  572.  
  573. [influxdb]
  574. # !!!
  575. # Will be DEPRECATED in future release.
  576. # Please have a look on the new influxdb2 export module (compatible with InfluxDB 1.8.x and 2.x)
  577. # !!!
  578. # Configuration for the --export influxdb option
  579. # https://influxdb.com/
  580. host=localhost
  581. port=8086
  582. protocol=http
  583. user=root
  584. password=root
  585. db=glances
  586. # Prefix will be added for all measurement name
  587. # Ex: prefix=foo
  588. # => foo.cpu
  589. # => foo.mem
  590. # You can also use dynamic values
  591. #prefix=foo
  592. # Following tags will be added for all measurements
  593. # You can also use dynamic values.
  594. # Note: hostname and name (for process) are always added as a tag
  595. #tags=foo:bar,spam:eggs,domain:`domainname`
  596.  
  597. [influxdb2]
  598. # Configuration for the --export influxdb2 option
  599. # https://influxdb.com/
  600. host=localhost
  601. port=8086
  602. protocol=http
  603. org=nicolargo
  604. bucket=glances
  605. token=EjFUTWe8U-MIseEAkaVIgVnej_TrnbdvEcRkaB1imstW7gapSqy6_6-8XD-yd51V0zUUpDy-kAdVD1purDLuxA==
  606. # Set the interval between two exports (in seconds)
  607. # If the interval is set to 0, the Glances refresh time is used (default behavor)
  608. #interval=0
  609. # Prefix will be added for all measurement name
  610. # Ex: prefix=foo
  611. # => foo.cpu
  612. # => foo.mem
  613. # You can also use dynamic values
  614. #prefix=foo
  615. # Following tags will be added for all measurements
  616. # You can also use dynamic values.
  617. # Note: hostname and name (for process) are always added as a tag
  618. #tags=foo:bar,spam:eggs,domain:`domainname`
  619.  
  620. [cassandra]
  621. # Configuration for the --export cassandra option
  622. # Also works for the ScyllaDB
  623. # https://influxdb.com/ or http://www.scylladb.com/
  624. host=localhost
  625. port=9042
  626. protocol_version=3
  627. keyspace=glances
  628. replication_factor=2
  629. # If not define, table name is set to host key
  630. table=localhost
  631. # If not define, username and password will not be used
  632. #username=cassandra
  633. #password=password
  634.  
  635. [opentsdb]
  636. # Configuration for the --export opentsdb option
  637. # http://opentsdb.net/
  638. host=localhost
  639. port=4242
  640. #prefix=glances
  641. #tags=foo:bar,spam:eggs
  642.  
  643. [statsd]
  644. # Configuration for the --export statsd option
  645. # https://github.com/etsy/statsd
  646. host=localhost
  647. port=8125
  648. #prefix=glances
  649.  
  650. [elasticsearch]
  651. # Configuration for the --export elasticsearch option
  652. # Data are available via the ES RESTful API. ex: URL/<index>/cpu
  653. # https://www.elastic.co
  654. scheme=http
  655. host=localhost
  656. port=9200
  657. index=glances
  658.  
  659. [riemann]
  660. # Configuration for the --export riemann option
  661. # http://riemann.io
  662. host=localhost
  663. port=5555
  664.  
  665. [rabbitmq]
  666. # Configuration for the --export rabbitmq option
  667. host=localhost
  668. port=5672
  669. user=guest
  670. password=guest
  671. queue=glances_queue
  672. #protocol=amqps
  673.  
  674. [mqtt]
  675. # Configuration for the --export mqtt option
  676. host=localhost
  677. # Overwrite device name in the topic
  678. #devicename=localhost
  679. port=8883
  680. tls=false
  681. user=guest
  682. password=guest
  683. topic=glances
  684. topic_structure=per-metric
  685. callback_api_version=2
  686.  
  687. [couchdb]
  688. # Configuration for the --export couchdb option
  689. # https://www.couchdb.org
  690. host=localhost
  691. port=5984
  692. db=glances
  693. user=admin
  694. password=admin
  695.  
  696. [mongodb]
  697. # Configuration for the --export mongodb option
  698. # https://www.mongodb.com
  699. host=localhost
  700. port=27017
  701. db=glances
  702. user=root
  703. password=example
  704.  
  705. [kafka]
  706. # Configuration for the --export kafka option
  707. # http://kafka.apache.org/
  708. host=localhost
  709. port=9092
  710. topic=glances
  711. #compression=gzip
  712. # Tags will be added for all events
  713. #tags=foo:bar,spam:eggs
  714. # You can also use dynamic values
  715. #tags=hostname:`hostname -f`
  716.  
  717. [zeromq]
  718. # Configuration for the --export zeromq option
  719. # http://www.zeromq.org
  720. # Use * to bind on all interfaces
  721. host=*
  722. port=5678
  723. # Glances envelopes the stats in a publish message with two frames:
  724. # - First frame containing the following prefix (STRING)
  725. # - Second frame with the Glances plugin name (STRING)
  726. # - Third frame with the Glances plugin stats (JSON)
  727. prefix=G
  728.  
  729. [prometheus]
  730. # Configuration for the --export prometheus option
  731. # https://prometheus.io
  732. # Create a Prometheus exporter listening on localhost:9091 (default configuration)
  733. # Metric are exporter using the following name:
  734. # <prefix>_<plugin>_<stats>{labelkey:labelvalue}
  735. # Note: You should add this exporter to your Prometheus server configuration:
  736. # scrape_configs:
  737. # - job_name: 'glances_exporter'
  738. # scrape_interval: 5s
  739. # static_configs:
  740. # - targets: ['localhost:9091']
  741. #
  742. # Labels will be added for all measurements (default is src:glances)
  743. # labels=foo:bar,spam:eggs
  744. # You can also use dynamic values
  745. # labels=system:`uname -s`
  746. #
  747. host=localhost
  748. port=9091
  749. #prefix=glances
  750. labels=src:glances
  751.  
  752. [restful]
  753. # Configuration for the --export restful option
  754. # Example, export to http://localhost:6789/
  755. host=localhost
  756. port=6789
  757. protocol=http
  758. path=/
  759.  
  760. [graphite]
  761. # Configuration for the --export graphite option
  762. # https://graphiteapp.org/
  763. host=localhost
  764. port=2003
  765. # Prefix will be added for all measurement name
  766. prefix=glances
  767. # System name added between the prefix and the stats
  768. # By default, system_name = FQDN
  769. #system_name=mycomputer
  770.  
  771. ##############################################################################
  772. # AMPS
  773. # * enable: Enable (true) or disable (false) the AMP
  774. # * regex: Regular expression to filter the process(es)
  775. # * refresh: The AMP is executed every refresh seconds
  776. # * one_line: (optional) Force (if true) the AMP to be displayed in one line
  777. # * command: (optional) command to execute when the process is detected (thk to the regex)
  778. # * countmin: (optional) minimal number of processes
  779. # A warning will be displayed if number of process < count
  780. # * countmax: (optional) maximum number of processes
  781. # A warning will be displayed if number of process > count
  782. # * <foo>: Others variables can be defined and used in the AMP script
  783. ##############################################################################
  784.  
  785. [amp_dropbox]
  786. # Use the default AMP (no dedicated AMP Python script)
  787. # Check if the Dropbox daemon is running
  788. # Every 3 seconds, display the 'dropbox status' command line
  789. enable=false
  790. regex=.*dropbox.*
  791. refresh=3
  792. one_line=false
  793. command=dropbox status
  794. countmin=1
  795.  
  796. [amp_python]
  797. # Use the default AMP (no dedicated AMP Python script)
  798. # Monitor all the Python scripts
  799. # Alert if more than 20 Python scripts are running
  800. enable=false
  801. regex=.*python.*
  802. refresh=3
  803. countmax=20
  804.  
  805. [amp_conntrack]
  806. # Use && separator for multiple commands
  807. # If the regex key is not defined, the AMP will be executed every refresh second
  808. # and the process count will not be displayed (countmin and countmax will be ignore)
  809. enable=false
  810. refresh=30
  811. one_line=false
  812. command=sysctl net.netfilter.nf_conntrack_count && sysctl net.netfilter.nf_conntrack_max
  813.  
  814. [amp_nginx]
  815. # Use the NGinx AMP
  816. # Nginx status page should be enable (https://easyengine.io/tutorials/nginx/status-page/)
  817. enable=false
  818. regex=\/usr\/sbin\/nginx
  819. refresh=60
  820. one_line=false
  821. status_url=http://localhost/nginx_status
  822.  
  823. [amp_systemd]
  824. # Use the Systemd AMP
  825. enable=false
  826. regex=\/lib\/systemd\/systemd
  827. refresh=30
  828. one_line=true
  829. systemctl_cmd=/bin/systemctl --plain
  830.  
  831. [amp_systemv]
  832. # Use the Systemv AMP
  833. enable=false
  834. regex=\/sbin\/init
  835. refresh=30
  836. one_line=true
  837. service_cmd=/usr/bin/service --status-all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement