| 1 | # Network Graph Configuration |
| 2 | |
| 3 | ## Settings |
| 4 | |
| 5 | If you want to change some of the default behaviour of the network graph widget, you can configure some things in the config file. |
| 6 | |
| 7 | | Field | Type | Functionality | |
| 8 | | ------------------- | ------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| 9 | | `show_packets` | Boolean | Displays packet rate and average packet size info. | |
| 10 | | `legend_position` | String (one of ["none", "top-left", "top", "top-right", "left", "right", "bottom-left", "bottom", "bottom-right"]) | Where to place the legend for the network widget. | |
| 11 | | `use_bytes` | Boolean | Displays the network widget using bytes. Defaults to bits. | |
| 12 | | `use_log` | Boolean | Displays the network widget with a log scale. Defaults to a non-log scale. | |
| 13 | | `use_binary_prefix` | Boolean | Displays the network widget with a binary prefix (e.g. kibibits) rather than a decimal prefix (e.g. kilobits). Defaults to decimal prefixes. | |
| 14 | | `start_zeroed` | Boolean | Zeroes out the total network usage ("All") counters such that it shows the total usage since the app is started, rather than the total usage since boot. | |
| 15 | |
| 16 | ## Filtering Entries |
| 17 | |
| 18 | You can filter out what entries to show by configuring `[network_graph.interface_filter]` . |
| 19 | In particular, you can set a list of things to filter with by setting `list`, and configure how that list is processed with the other options. |
| 20 | |
| 21 | For example, here we are ignoring any entry with a name that matches the regex `eth0.*`, or specifically `virbr0`. |
| 22 | |
| 23 | ```toml |
| 24 | [network_graph.interface_filter] |
| 25 | # Whether to ignore any matches. Defaults to true. |
| 26 | is_list_ignored = true |
| 27 | |
| 28 | # A list of filters to try and match. |
| 29 | list = ["virbr0", "eth0slab"] |
| 30 | |
| 31 | # Whether to use regex. Defaults to false. |
| 32 | regex = true |
| 33 | |
| 34 | # Whether to be case-sensitive. Defaults to false. |
| 35 | case_sensitive = false |
| 36 | |
| 37 | # Whether to require matching the whole word. Defaults to false. |
| 38 | whole_word = false |
| 39 | ``` |