Diagnostic snapshot description

Change-Id: Ide3f32abcaf9c2b22305dc173b908d4a04e11a94
This commit is contained in:
Artur Zarzycki 2017-03-09 11:17:00 +01:00
parent 5da9d81a2d
commit 109eb10e45
2 changed files with 68 additions and 0 deletions

View File

@ -0,0 +1,67 @@
.. diagnostic_snapshot:
==================================
Diagnostic snapshot
==================================
In ``fuel-ccp/tools`` directory you can find tool called ``diagnostic-snapshot.sh``. This tool helps to collect some debug data about your environment. You can run it with:
::
./tools/diagnostic_snapshot -n <namespace> -o <output_dir> -c <ccp_config>
.. _parameters:
parameters
---------
.. list-table::
:widths: 10 13 30
:header-rows: 1
* - Short option
- Long option
- Description
* - -n
- --namespace
- deployment namespace
* - -o
- --output-dir
- directory where diagnostic snapshot will be saved
* - -c
- --config
- should point to Fuel-ccp config file
* - -h
- --help
- print help
This tool collect some basic data about:
- k8s objects in kube-system and ccp namespaces:
- pods
- services
- jobs
- kubelet logs
- system:
- diskspace
- network configuration
- cpu info/load
- sysctl info
- docker:
- logs
- list of images
- running containers
- stats
- ccp:
- status output
This script automatically create directory provided as parameter for -o option and archive file in it with all collected data. The name of this file is created with template: <datetime>-diagnostic.tar.gz

View File

@ -55,6 +55,7 @@ Developer docs
docker
dsl
debugging
diagnostic_snapshot
Design docs
-----------