Skip to content

Commit d0de547

Browse files
committedJun 1, 2024
Add support for automatically hiding network interfaces that are down or that don't have any IP addresses nicolargo#2799
1 parent d00be34 commit d0de547

File tree

7 files changed

+165
-87
lines changed

7 files changed

+165
-87
lines changed
 

‎conf/glances.conf

+4
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ tx_critical=90
216216
hide=docker.*,lo
217217
# Define the list of wireless network interfaces to be show (comma-separated)
218218
#show=docker.*
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
219223
# It is possible to overwrite the bitrate thresholds per interface
220224
# WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
221225
#wlan0_rx_careful=4000000

‎docker-compose/glances.conf

+4
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ tx_critical=90
216216
#hide=docker.*,lo
217217
# Define the list of wireless network interfaces to be show (comma-separated)
218218
#show=docker.*
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
219223
# It is possible to overwrite the bitrate thresholds per interface
220224
# WLAN 0 Default limits (in bits per second aka bps) for interface bitrate
221225
#wlan0_rx_careful=4000000

‎docs/aoa/network.rst

+6
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ In this case thresholds values are define in bps.
1717
Additionally, you can define:
1818

1919
- a list of network interfaces to hide
20+
- automatically hide interfaces not up
21+
- automatically hide interfaces without IP address
2022
- per-interface limit values
2123
- aliases for interface name
2224

@@ -41,6 +43,10 @@ virtual docker interface (docker0, docker1, ...):
4143
hide=docker.*,lo
4244
# Define the list of network interfaces to show (comma-separated regexp)
4345
#show=eth0,eth1
46+
# Automatically hide interface not up (default is False)
47+
hide_no_up=True
48+
# Automatically hide interface with no IP address (default is False)
49+
hide_no_ip=True
4450
# WLAN 0 alias
4551
wlan0_alias=Wireless IF
4652
# It is possible to overwrite the bitrate thresholds per interface

0 commit comments

Comments
 (0)