diff options
Diffstat (limited to 'docker-compose/glances.conf')
-rwxr-xr-x | docker-compose/glances.conf | 80 |
1 files changed, 54 insertions, 26 deletions
diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index 437de0e6..0686b528 100755 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -27,13 +27,20 @@ history_size=1200 separator=True # Set the the Curses and WebUI interface left menu plugin list (comma-separated) #left_menu=network,wifi,connections,ports,diskio,fs,irq,folders,raid,smart,sensors,now -# Limit the number of processes to display (for the WebUI) +# Limit the number of processes to display (in the WebUI) max_processes_display=25 -# Set the URL prefix (for the WebUI and the API) +# Set URL prefix for the WebUI and the API # Example: url_prefix=/glances/ => http://localhost/glances/ -# The final / is mandatory +# Note: The final / is mandatory # Default is no prefix (/) #url_prefix=/glances/ +# Set root path for WebUI statics files +# Why ? On Debian system, WebUI statics files are not provided. +# You can download it in a specific folder +# thanks to https://github.com/nicolargo/glances/issues/2021 +# then configure this folder with the webui_root_path key +# Default is folder where glances_restfull_api.py is hosted +#webui_root_path= ############################################################################## # plugins @@ -110,13 +117,18 @@ steal_critical=90 #steal_log=True # # Context switch limit (core / second) -# Leave commented to just use the default config (critical is 50000*# (Logical CPU cores) +# Leave commented to just use the default config critical is 50000*(Logical CPU cores) #ctx_switches_careful=10000 #ctx_switches_warning=12000 #ctx_switches_critical=14000 [percpu] disable=False +# Define the maximum number of CPU displayed at a time +# If the number of CPU is higher than the one configured in max_cpu_display then: +# - display top 'max_cpu_display' (sorted by CPU consumption) +# - a last line will be added with the mean of all other CPUs +max_cpu_display=4 # Define CPU thresholds in % # Default values if not defined: 50/70/90 user_careful=50 @@ -201,22 +213,33 @@ tx_critical=90 #alias=wlp2s0:WIFI [ip] +# Disable display of private IP address disable=False +# Configure the online service where public IP address information will be downloaded +# - public_disabled: Disable public IP address information (set to True for offline platform) +# - public_refresh_interval: Refresh interval between to calls to the online service +# - public_api: URL of the API (the API should return an JSON object) +# - public_username: Login for the online service (if needed) +# - public_password: Password for the online service (if needed) +# - public_field: Field name of the public IP address in onlibe service JSON message +# - public_template: Template to build the public message +# +# Example for IPLeak service: +# public_api=https://ipv4.ipleak.net/json/ +# public_field=ip +# public_template={ip} {continent_name}/{country_name}/{city_name} +# +public_disabled=True public_refresh_interval=300 -public_ip_disabled=False -# Configuration for the Censys online service -# Need to create an aacount: https://censys.io/login -censys_url=https://search.censys.io/api -# Get your own credential here: https://search.censys.io/account/api -# Enter your credential and uncomment the following lines -#censys_username=<censys_api_id> -#censys_password=<censys_secret> -# List of fields to be displayed in user interface (comma separated) -censys_fields=location:continent,location:country,autonomous_system:name +public_api=https://ipv4.ipleak.net/json/ +#public_username=<myname> +#public_password=<mysecret> +public_field=ip +public_template={continent_name}/{country_name}/{city_name} [connections] # Display additional information about TCP connections -# This plugin is disabled by default +# This plugin is disabled by default because it consumes lots of CPU disable=True # nf_conntrack thresholds in % nf_conntrack_percent_careful=70 @@ -225,7 +248,7 @@ nf_conntrack_percent_critical=90 [wifi] disable=False -# Define SIGNAL thresholds in db (lower is better...) +# Define SIGNAL thresholds in dBm (lower is better...) # Based on: http://serverfault.com/questions/501025/industry-standard-for-minimum-wifi-signal-strength careful=-65 warning=-75 @@ -238,13 +261,13 @@ disable=False hide=loop.*,/dev/loop.* # Define the list of disks to be show (comma-separated) #show=sda.* -# Alias for sda1 -#sda1_alias=InternalDisk +# Alias for sda1 and sdb1 +#alias=sda1:SystemDisk,sdb1:DataDisk [fs] disable=False # Define the list of file system to hide (comma-separated regexp) -hide=/boot.*,/snap.* +hide=/boot.*,.*/snap.* # Define the list of file system to show (comma-separated regexp) #show=/,/srv # Define filesystem space thresholds in % @@ -310,10 +333,13 @@ port=7634 [sensors] # Documentation: https://glances.readthedocs.io/en/latest/aoa/sensors.html disable=False -# By default refresh every refresh time * 2 -#refresh=6 -# Hide some sensors -#hide=ambient +# Set the refresh multiplicator for the sensors +# By default refresh every Glances refresh * 3 (increase to reduce CPU consumption) +#refresh=3 +# Hide some sensors (comma separated list of regexp) +hide=unknown.* +# Show only the following sensors (comma separated list of regexp) +#show=CPU.* # Sensors core thresholds (in Celsius...) # Default values are grabbed from the system #temperature_core_careful=45 @@ -328,6 +354,8 @@ temperature_hdd_critical=60 battery_careful=80 battery_warning=90 battery_critical=95 +# Fan speed threashold in RPM +#fan_speed_careful=100 # Sensors alias #alias=core 0:CPU Core 0,core 1:CPU Core 1 @@ -374,7 +402,7 @@ refresh=30 # Set the default timeout (in second) for a scan (can be overwritten in the scan list) timeout=3 # If port_default_gateway is True, add the default gateway on top of the scan list -port_default_gateway=True +port_default_gateway=False # # Define the scan list (1 < x < 255) # port_x_host (name or IP) is mandatory @@ -525,7 +553,7 @@ db=glances #prefix=foo # Following tags will be added for all measurements # You can also use dynamic values. -# Note: hostname is always added as a tag +# Note: hostname and name (for process) are always added as a tag #tags=foo:bar,spam:eggs,domain:`domainname` [influxdb2] @@ -548,7 +576,7 @@ token=EjFUTWe8U-MIseEAkaVIgVnej_TrnbdvEcRkaB1imstW7gapSqy6_6-8XD-yd51V0zUUpDy-kA #prefix=foo # Following tags will be added for all measurements # You can also use dynamic values. -# Note: hostname is always added as a tag +# Note: hostname and name (for process) are always added as a tag #tags=foo:bar,spam:eggs,domain:`domainname` [cassandra] |