blob: 053659bca5f2a836e13a921f520fd1ad8d072137 [file] [log] [blame]
Nathan Skrzypczaka2c95092021-10-08 14:05:58 +02001.. _vpp_top_doc:
2
3VPP Top Installation
4====================
5
6`VPPTop <(https://github.com/PANTHEONtech/vpptop)>`__ is a real-time
7data viewer for VPP interfaces and metrics displayed in dynamic terminal
8user interface, written in GO.
9
10Following make targets are available:
11
12* ``install`` downloads and installs VPPTop including all external dependencies, binary API generator
13 and latest version of GO. Running ``make install-dep`` (from the VPP top-level Makefile) is recommended.
14* ``cleanup`` removes VPPTop repository from the target directory (``/build-root/vpptop``)
15* ``start`` runs the VPPTop if installed
16* ``help`` shows information about available commands
17
18The VPPTop is installed to be compatible with the given VPP version and
19may not work with other versions with different API. In that case, the
20VPPTop has to be re-installed.
21
22GO variables management
23-----------------------
24
25The installer depends on Golang environment variables GOROOT (for the GO
26installation) and GOPATH (for other binaries). Those variables are read
27from the environment and set to following values if not found:
28
29::
30
31 GOROOT=/root/.go/ GOPATH=/root/go/
32
33
34If you have the GO already installed and have to run the installer with
35``sudo``, use the ``-E`` switch to provide those variables to the
36installer.