mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-24 13:23:12 +03:00
Add hide configuration key for FS Plugin (issue #736)
This commit is contained in:
parent
f3c7db8fd4
commit
e255b2a1f5
1
NEWS
1
NEWS
@ -8,6 +8,7 @@ Version 2.6
|
||||
Enhancements and new features:
|
||||
|
||||
* New folders' monitoring plugins (issue #721)
|
||||
* Add hide configuration key for FS Plugin (issue #736)
|
||||
* Add process summary min/max stats (issue #703)
|
||||
* Add timestamp to the CSV export module (issue #708)
|
||||
* Add a shortcut 'E' to delete process filter (issue #699)
|
||||
|
@ -82,7 +82,7 @@ critical=90
|
||||
#wlan0_tx_critical=1000000
|
||||
#wlan0_tx_log=True
|
||||
|
||||
#[diskio]
|
||||
[diskio]
|
||||
# Define the list of hidden disks (comma separeted)
|
||||
#hide=sda2,sda5
|
||||
# Alias for sda1
|
||||
@ -98,6 +98,8 @@ warning=70
|
||||
critical=90
|
||||
# Allow additionnals files types (comma-separated FS type)
|
||||
#allow=zfs
|
||||
# Define the list of hidden file system (comma separeted)
|
||||
#hide=/boot/efi
|
||||
|
||||
[folders]
|
||||
# Define a folder list to monitor
|
||||
@ -147,7 +149,7 @@ mem_careful=50
|
||||
mem_warning=70
|
||||
mem_critical=90
|
||||
|
||||
#[monitor]
|
||||
[monitor]
|
||||
# Define the list of processes to monitor
|
||||
# *** This section is optional ***
|
||||
# The list is composed of items (list_#nb <= 10)
|
||||
|
@ -115,6 +115,9 @@ class Plugin(GlancesPlugin):
|
||||
|
||||
# Loop over fs
|
||||
for fs in fs_stat:
|
||||
# Do not display hidden file system
|
||||
if self.is_hide(fs.mountpoint):
|
||||
continue
|
||||
# Grab the disk usage
|
||||
try:
|
||||
fs_usage = psutil.disk_usage(fs.mountpoint)
|
||||
|
Loading…
Reference in New Issue
Block a user