2016-03-02 15:29:19 +03:00
|
|
|
.. _fs:
|
|
|
|
|
|
|
|
File System
|
|
|
|
===========
|
|
|
|
|
|
|
|
.. image:: ../_static/fs.png
|
|
|
|
|
|
|
|
Glances displays the used and total file system disk space. The unit is
|
|
|
|
adapted dynamically.
|
|
|
|
|
2020-06-18 20:25:36 +03:00
|
|
|
Alerts are set for `user disk space usage <https://psutil.readthedocs.io/en/latest/index.html?highlight=disk%20usage#psutil.disk_usage>`_.
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
Legend:
|
|
|
|
|
2020-06-18 20:25:36 +03:00
|
|
|
===================== ============
|
|
|
|
User disk space usage Status
|
|
|
|
===================== ============
|
|
|
|
``<50%`` ``OK``
|
|
|
|
``>50%`` ``CAREFUL``
|
|
|
|
``>70%`` ``WARNING``
|
|
|
|
``>90%`` ``CRITICAL``
|
|
|
|
===================== ============
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
.. note::
|
|
|
|
Limit values can be overwritten in the configuration file under
|
2021-04-25 10:42:23 +03:00
|
|
|
the ``[fs]`` section.
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
By default, the plugin only displays physical devices (hard disks, USB
|
|
|
|
keys). To allow other file system types, you have to enable them in the
|
2020-08-22 13:26:05 +03:00
|
|
|
configuration file. For example, if you want to allow the ``shm`` file
|
2016-03-02 15:29:19 +03:00
|
|
|
system:
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[fs]
|
2020-08-22 13:26:05 +03:00
|
|
|
allow=shm
|
2016-03-02 15:29:19 +03:00
|
|
|
|
2021-04-25 10:42:23 +03:00
|
|
|
Also, you can hide mount points using regular expressions.
|
2016-03-02 15:29:19 +03:00
|
|
|
|
2021-04-25 10:42:23 +03:00
|
|
|
To hide all mount points starting with /boot and /snap:
|
2020-02-27 15:56:06 +03:00
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
2020-06-07 18:14:51 +03:00
|
|
|
[fs]
|
2021-04-25 10:42:23 +03:00
|
|
|
hide=/boot.*,/snap.*
|
2020-06-07 18:14:51 +03:00
|
|
|
|
2021-04-25 10:42:23 +03:00
|
|
|
Filtering are also applied on device name (Glances 3.1.4 or higher).
|
|
|
|
|
2022-09-25 11:13:57 +03:00
|
|
|
It is also possible to configure a white list of devices to display.
|
2022-05-22 17:27:46 +03:00
|
|
|
Example to only show /dev/sdb mount points:
|
2020-02-27 15:56:06 +03:00
|
|
|
|
2016-03-02 15:29:19 +03:00
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[fs]
|
2022-05-22 17:27:46 +03:00
|
|
|
show=/dev/sdb.*
|
2023-01-22 13:14:59 +03:00
|
|
|
|
|
|
|
Filtering is based on regular expression. Please be sure that your regular
|
|
|
|
expression works as expected. You can use an online tool like `regex101`_ in
|
|
|
|
order to test your regular expression.
|
|
|
|
|
|
|
|
.. _regex101: https://regex101.com/
|