Debian Codegraph @

docs/content/configuration/config-file/disk-io-graph.md

raw symbols SCIP
1 # Disk I/O Graph Configuration
2
3 The disk I/O graph widget is configured under `[disk_io_graph]`.
4
5 ## Showing Read/Write Lines
6
7 By default, both the read and write rate lines are shown. They can be toggled off independently.
8
9 ```toml
10 [disk_io_graph]
11 # Whether to show the read rate line. Defaults to true.
12 show_read = true
13
14 # Whether to show the write rate line. Defaults to true.
15 show_write = true
16 ```
17
18 ## Legend Labels
19
20 By default, legend entries are labelled by disk name (e.g. `sda`, `nvme0n1`). To use mount points
21 instead (e.g. `/`, `/home`):
22
23 ```toml
24 [disk_io_graph]
25 legend = "mount"
26 ```
27
28 Valid values are `"disk"` (default) and `"mount"`.
29
30 ## Logarithmic Scale
31
32 The y-axis can be switched to a logarithmic scale:
33
34 ```toml
35 [disk_io_graph]
36 use_log = true
37 ```
38
39 ## Legend Position
40
41 The location of the legend can be set with `legend_position`. Valid values are `none`, `top-left`, `top`, `top-right`,
42 `left`, `right`, `bottom-left`, `bottom`, and `bottom-right`. Defaults to `top-right`.
43
44 ```toml
45 [disk_io_graph]
46 legend_position = "top-right"
47 ```
48
49 ## Show Unmounted Devices (Linux only)
50
51 By default, only mounted devices are shown. To also show unmounted devices on Linux, enable `include_unmounted`:
52
53 ```toml
54 [disk_io_graph]
55 include_unmounted = true
56 ```
57
58 ## Filtering Entries
59
60 You can filter out what entries to show by configuring `[disk_io_graph.name_filter]` and `[disk_io_graph.mount_filter]` to filter by
61 name and mount point respectively. In particular, you can set a list of things to filter with by setting `list`,
62 and configure how that list is processed with the other options.
63
64 If we wanted to ignoring any entry with a name that matches `/dev/sda`:
65
66 ```toml
67 [disk_io_graph.name_filter]
68 # Whether to ignore any matches. Defaults to true.
69 is_list_ignored = true
70
71 # A list of filters to try and match.
72 list = ["/dev/sda"]
73
74 # Whether to use regex. Defaults to false.
75 regex = true
76
77 # Whether to be case-sensitive. Defaults to false.
78 case_sensitive = false
79
80 # Whether to require matching the whole word. Defaults to false.
81 whole_word = false
82 ```