blob: 2e4dcc0fb4d70b9c7dd74d6dddab7e8d98892419 [file] [log] [blame]
Nathan Skrzypczaka2c95092021-10-08 14:05:58 +02001.. _if_stats_client_doc:
2
3VPP interface stats client
4==========================
5
6This is a source code and a binary of a thin client to collect,
7aggregate and expose VPP interface stats through VPP stats socket API.
8It also provides some information about the installed VPP version.
9
10This can be used by monitoring systems that needs to grab those details
11through a simple executable client with no dependencies.
12
13example use case: where VPP runs in a container that cant expose the
14socket API to the host level
15
16Prerequisites (for building)
17----------------------------
18
19**GoVPP** library (compatible with VPP 18.10) vpp, vpp-api, vpp-lib
20
21Building
22--------
23
24.. code:: bash
25
26 go get git.fd.io/govpp.git
27 go build
28
29Using (post-build for example on linux 64bit)
30---------------------------------------------
31
32.. code:: bash
33
34 ./bin/vpp_if_stats_linux_amd64
35
36Output examples
37---------------
38
39`JSON schema <./response_schema.json>`__
40`Example <./response_example.json>`__