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