diff options
author | nicolargo <nicolas@nicolargo.com> | 2018-12-08 22:08:14 +0100 |
---|---|---|
committer | nicolargo <nicolas@nicolargo.com> | 2018-12-08 22:08:14 +0100 |
commit | cd06e045c24ad0af9ae54398cae7757683338de3 (patch) | |
tree | 747b342caae4422f3f292e562fdaf64013a98ca2 /docs | |
parent | e2b61d9446f190a3de15c46594317cb6d4420bc3 (diff) |
Add a CSV output format to the STDOUT output mode #1363
Diffstat (limited to 'docs')
-rw-r--r-- | docs/quickstart.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/quickstart.rst b/docs/quickstart.rst index 725863a9..c7c212f8 100644 --- a/docs/quickstart.rst +++ b/docs/quickstart.rst @@ -37,6 +37,16 @@ It is also possible to display RAW JSON stats directly to stdout using: load: {'cpucore': 4, 'min1': 0.19, 'min5': 0.39, 'min15': 0.27} ... +or in a CSV format thanks to the stdout-csv option: + +.. code-block:: console + + $ glances --stdout-csv now,cpu.user,mem.used,load + now,cpu.user,mem.used,load.cpucore,load.min1,load.min5,load.min15 + 2018-12-08 22:04:20 CEST,7.3,5948149760,4,1.04,0.99,1.04 + 2018-12-08 22:04:23 CEST,5.4,5949136896,4,1.04,0.99,1.04 + ... + Note: It will display one line per stat per refresh. Client/Server Mode |