Skip to content

Commit 89e9ad1

Browse files
committed
Merge branch 'issue1070' into develop
2 parents 5f3e1de + 1daac0e commit 89e9ad1

File tree

12 files changed

+4028
-4098
lines changed

12 files changed

+4028
-4098
lines changed

conf/glances.conf

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,32 @@ hide_zero=False
300300
#show=sda.*
301301
# Alias for sda1 and sdb1
302302
#alias=sda1:SystemDisk,sdb1:DataDisk
303-
# Set thresholds (in bytes per second) for a given disk name (rx = read / tx = write)
303+
# Default latency thresholds (in ms) (rx = read / tx = write)
304+
rx_latency_careful=10
305+
rx_latency_warning=20
306+
rx_latency_critical=50
307+
tx_latency_careful=10
308+
tx_latency_warning=20
309+
tx_latency_critical=50
310+
# Set latency thresholds (latency in ms) for a given disk name (rx = read / tx = write)
311+
# dm-0_rx_latency_careful=10
312+
# dm-0_rx_latency_warning=20
313+
# dm-0_rx_latency_critical=50
314+
# dm-0_rx_latency_log=False
315+
# dm-0_tx_latency_careful=10
316+
# dm-0_tx_latency_warning=20
317+
# dm-0_tx_latency_critical=50
318+
# dm-0_tx_latency_log=False
319+
# There is no default bitrate thresholds for disk (because it is not possible to know the disk speed)
320+
# Set bitrate thresholds (in bytes per second) for a given disk name (rx = read / tx = write)
304321
#dm-0_rx_careful=4000000000
305322
#dm-0_rx_warning=5000000000
306323
#dm-0_rx_critical=6000000000
307-
#dm-0_rx_log=True
324+
#dm-0_rx_log=False
308325
#dm-0_tx_careful=700000000
309326
#dm-0_tx_warning=900000000
310327
#dm-0_tx_critical=1000000000
311-
#dm-0_tx_log=True
328+
#dm-0_tx_log=False
312329

313330
[fs]
314331
disable=False

docker-compose/glances.conf

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,32 @@ hide_zero=False
300300
#show=sda.*
301301
# Alias for sda1 and sdb1
302302
#alias=sda1:SystemDisk,sdb1:DataDisk
303-
# Set thresholds (in bytes per second) for a given disk name (rx = read / tx = write)
303+
# Default latency thresholds (in ms) (rx = read / tx = write)
304+
rx_latency_careful=10
305+
rx_latency_warning=20
306+
rx_latency_critical=50
307+
tx_latency_careful=10
308+
tx_latency_warning=20
309+
tx_latency_critical=50
310+
# Set latency thresholds (latency in ms) for a given disk name (rx = read / tx = write)
311+
# dm-0_rx_latency_careful=10
312+
# dm-0_rx_latency_warning=20
313+
# dm-0_rx_latency_critical=50
314+
# dm-0_rx_latency_log=False
315+
# dm-0_tx_latency_careful=10
316+
# dm-0_tx_latency_warning=20
317+
# dm-0_tx_latency_critical=50
318+
# dm-0_tx_latency_log=False
319+
# There is no default bitrate thresholds for disk (because it is not possible to know the disk speed)
320+
# Set bitrate thresholds (in bytes per second) for a given disk name (rx = read / tx = write)
304321
#dm-0_rx_careful=4000000000
305322
#dm-0_rx_warning=5000000000
306323
#dm-0_rx_critical=6000000000
307-
#dm-0_rx_log=True
324+
#dm-0_rx_log=False
308325
#dm-0_tx_careful=700000000
309326
#dm-0_tx_warning=900000000
310327
#dm-0_tx_critical=1000000000
311-
#dm-0_tx_log=True
328+
#dm-0_tx_log=False
312329

313330
[fs]
314331
disable=False

docs/aoa/diskio.rst

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,12 @@ Disk I/O
55

66
.. image:: ../_static/diskio.png
77

8-
Glances displays the disk I/O throughput. The unit is adapted
9-
dynamically.
10-
11-
You can display:
12-
8+
Glances displays the disk I/O throughput, count and mean latency:
139
- bytes per second (default behavior / Bytes/s, KBytes/s, MBytes/s, etc)
1410
- requests per second (using --diskio-iops option or *B* hotkey)
11+
- mean latency (using --diskio-latency option or *L* hotkey)
1512

16-
There is no alert on this information.
17-
18-
It's possible to define:
13+
It's also possible to define:
1914

2015
- a list of disk to show (white list)
2116
- a list of disks to hide
@@ -42,13 +37,20 @@ Filtering is based on regular expression. Please be sure that your regular
4237
expression works as expected. You can use an online tool like `regex101`_ in
4338
order to test your regular expression.
4439

45-
It is also possible to define thesholds for bytes read and write per second:
40+
It is also possible to define thesholds for latency and bytes read and write per second:
4641

4742
.. code-block:: ini
4843
4944
[diskio]
5045
# Alias for sda1 and sdb1
5146
#alias=sda1:SystemDisk,sdb1:DataDisk
47+
# Default latency thresholds (in ms) (rx = read / tx = write)
48+
rx_latency_careful=10
49+
rx_latency_warning=20
50+
rx_latency_critical=50
51+
tx_latency_careful=10
52+
tx_latency_warning=20
53+
tx_latency_critical=50
5254
# Set thresholds (in bytes per second) for a given disk name (rx = read / tx = write)
5355
dm-0_rx_careful=4000000000
5456
dm-0_rx_warning=5000000000

0 commit comments

Comments
 (0)