summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2019-08-11 20:11:13 +0200
committernicolargo <nicolashennion@gmail.com>2019-08-11 20:11:13 +0200
commit0be5c24ae900fda9461bdf4d0cc9b68c4010a85e (patch)
tree3955728d155abff113530fdfe74e7c8cd877be6d /docs
parent7208bd3df7a005429498ffbe7e35adb09db43e1c (diff)
Make CSV export append instead of replace #1525
Diffstat (limited to 'docs')
-rw-r--r--docs/gw/csv.rst14
1 files changed, 12 insertions, 2 deletions
diff --git a/docs/gw/csv.rst b/docs/gw/csv.rst
index 3e766e0a..4c477be2 100644
--- a/docs/gw/csv.rst
+++ b/docs/gw/csv.rst
@@ -11,5 +11,15 @@ It's possible to export stats to a CSV file.
CSV file description:
-- Stats description (first line)
-- Stats (other lines)
+- first line: Stats description (header)
+- others lines: Stats (data)
+
+By default, data will be append any existing CSV file.
+
+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:
+
+ $ glances --export csv --export-csv-file /tmp/glances.csv --disable-plugin load,swap