From cca55759ee02a32a2e2506ec7fed3b59a899d749 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Sat, 7 Oct 2023 09:58:12 +0200 Subject: Update glances.conf file for Docker --- conf/glances.conf | 2 +- docker-compose/glances.conf | 33 +++++++++++++++++++-------------- 2 files changed, 20 insertions(+), 15 deletions(-) diff --git a/conf/glances.conf b/conf/glances.conf index ef71a4c6..7bf00d66 100644 --- a/conf/glances.conf +++ b/conf/glances.conf @@ -426,7 +426,7 @@ all=False disable=False [alert] -disable=True +disable=False # Maximum number of alerts to display (default is 10) ; max_events=10 diff --git a/docker-compose/glances.conf b/docker-compose/glances.conf index ad22d4ae..ed44d51b 100644 --- a/docker-compose/glances.conf +++ b/docker-compose/glances.conf @@ -22,7 +22,7 @@ history_size=1200 [outputs] # Theme name for the Curses interface: black or white curse_theme=black -# Limit the number of processes to display in the WebUI +# Limit the number of processes to display (for the WebUI) max_processes_display=30 # Set the URL prefix (for the WebUI and the API) # Example: url_prefix=/glances/ => http://localhost/glances/ @@ -400,35 +400,40 @@ port_default_gateway=True disable=False # Only show specific containers (comma separated list of container name or regular expression) # Comment this line to display all containers (default configuration) -#show=telegraf +; show=telegraf # Hide some containers (comma separated list of container name or regular expression) # Comment this line to display all containers (default configuration) -#hide=telegraf +; hide=telegraf # Define the maximum docker size name (default is 20 chars) max_name_size=20 -#cpu_careful=50 +; cpu_careful=50 # Thresholds for CPU and MEM (in %) -#cpu_warning=70 -#cpu_critical=90 -#mem_careful=20 -#mem_warning=50 -#mem_critical=70 +; cpu_warning=70 +; cpu_critical=90 +; mem_careful=20 +; mem_warning=50 +; mem_critical=70 # # Per container thresholds -#containername_cpu_careful=10 -#containername_cpu_warning=20 -#containername_cpu_critical=30 +; containername_cpu_careful=10 +; containername_cpu_warning=20 +; containername_cpu_critical=30 # # By default, Glances only display running containers # Set the following key to True to display all containers all=False # Define Podman sock -#podman_sock=unix:///run/user/1000/podman/podman.sock +; podman_sock=unix:///run/user/1000/podman/podman.sock [amps] # AMPs configuration are defined in the bottom of this file disable=False +[alert] +disable=False +# Maximum number of alerts to display (default is 10) +; max_events=10 + ############################################################################## # Client/server ############################################################################## @@ -470,7 +475,7 @@ path=/tmp # It is possible to generate the graphs automatically by setting the # generate_every to a non zero value corresponding to the seconds between # two generation. Set it to 0 to disable graph auto generation. -generate_every=60 +generate_every=0 # See following configuration keys definitions in the Pygal lib documentation # http://pygal.org/en/stable/documentation/index.html width=800 -- cgit v1.2.3