summaryrefslogtreecommitdiffstats
path: root/docker-compose/glances.conf
diff options
context:
space:
mode:
Diffstat (limited to 'docker-compose/glances.conf')
-rwxr-xr-xdocker-compose/glances.conf47
1 files changed, 31 insertions, 16 deletions
diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf
index 5efb266e..225700fa 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
@@ -227,7 +239,7 @@ 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
@@ -236,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
@@ -249,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 %
@@ -321,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
@@ -385,7 +400,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
@@ -536,7 +551,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]
@@ -559,7 +574,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]