2016-03-02 15:29:19 +03:00
|
|
|
.. _csv:
|
|
|
|
|
|
|
|
CSV
|
|
|
|
===
|
|
|
|
|
|
|
|
It's possible to export stats to a CSV file.
|
|
|
|
|
|
|
|
.. code-block:: console
|
|
|
|
|
2022-08-24 20:32:42 +03:00
|
|
|
$ glances --export csv --export-csv-file /tmp/glances.csv --quiet
|
2016-03-02 15:29:19 +03:00
|
|
|
|
|
|
|
CSV file description:
|
|
|
|
|
2019-08-11 21:11:13 +03:00
|
|
|
- first line: Stats description (header)
|
|
|
|
- others lines: Stats (data)
|
|
|
|
|
2022-08-24 20:32:42 +03:00
|
|
|
By default, data will be append any existing CSV file (if header are compliant).
|
2019-08-11 21:11:13 +03:00
|
|
|
|
|
|
|
If the header did not match with a previous one, an error is logged.
|
|
|
|
|
|
|
|
The --export-csv-overwrite tag should be used if you want to delete the existing CSV file when Glances starts.
|
|
|
|
|
|
|
|
It is possible to remove some exported data using the --disable-plugin tag:
|
|
|
|
|
2022-08-24 20:32:42 +03:00
|
|
|
$ glances --export csv --export-csv-file /tmp/glances.csv --disable-plugin load,swap --quiet
|
|
|
|
|
|
|
|
or by only enable some plugins:
|
|
|
|
|
|
|
|
$ glances --export csv --export-csv-file /tmp/glances.csv --disable-plugin all --enable-plugin cpu,mem,load --quiet
|