docker.userguide: Add chapter about cleanup influxdb/grafana 87/65487/2
authorRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Mon, 26 Nov 2018 07:52:56 +0000 (07:52 +0000)
committerRadoslaw Jablonski <radoslawx.jablonski@intel.com>
Tue, 4 Dec 2018 13:08:19 +0000 (13:08 +0000)
Added chapter about cleaning influxdb and grafana configurations.
Config files for both are stored in folders that are shared
between container and Host machine - it is good to remove them
when removing barometer docker containers in case of re-installation
or changing active setup.

Change-Id: If84c0f0ee91560275b4834bc98dbdff518a059a8
Signed-off-by: Radoslaw Jablonski <radoslawx.jablonski@intel.com>
docs/release/userguide/docker.userguide.rst

index 9b928cb..2b559f8 100644 (file)
@@ -859,6 +859,30 @@ To make some changes when the container is running run:
 
 Connect to <host_ip>:3000 with a browser and log into grafana: admin/admin
 
+Cleanup of influxdb/grafana configuration
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+When user wants to remove current grafana and influxdb configuration,
+folowing actions have to be performed
+
+1. Stop and remove running influxdb and grafana containers
+
+.. code:: bash
+
+   sudo docker rm -f bar-grafana bar-influxdb
+
+2. Remove shared influxdb and grafana folders from the Host
+
+.. code:: bash
+
+   sudo rm -rf /var/lib/grafana
+   sudo rm -rf /var/lib/influxdb
+
+.. note::
+   Shared folders are storing configuration of grafana and influxdb
+   containers. In case of changing influxdb or grafana configuration
+   (e.g. moving influxdb to another host) it is good to perform cleanup
+   on shared folders to not affect new setup with an old configuration.
 
 Build and Run VES and Kafka Docker Images
 ------------------------------------------