Skip to content

Commit fc3d8cf

Browse files
committed
Explain dstat
1 parent 873e5f0 commit fc3d8cf

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/templates/agent-metadata.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ resource "coder_agent" "main" {
6565
}
6666
```
6767

68-
Show users the space used in their `/` volume:
69-
7068
## Utilities
7169

7270
* [vmstat](https://linux.die.net/man/8/vmstat) is available in most Linux
@@ -78,3 +76,13 @@ procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
7876
0 0 19580 4781680 12133692 217646944 0 2 4 32 1 0 1 1 98 0 0
7977
```
8078

79+
* [dstat](https://linux.die.net/man/1/dstat) is considerably more human-friendly
80+
than `vmstat` but not always already installed. It is available in almost any
81+
package manager under the name `dstat`. The output of running `dstat 1 1` looks
82+
like:
83+
84+
```
85+
--total-cpu-usage-- -dsk/total- -net/total- ---paging-- ---system--
86+
usr sys idl wai stl| read writ| recv send| in out | int csw
87+
1 1 98 0 0|3422k 25M| 0 0 | 153k 904k| 123k 174k
88+
```

0 commit comments

Comments
 (0)