aboutsummaryrefslogtreecommitdiffstats
path: root/extras/vpp_if_stats/README.md
blob: 89d60c5255d2b7e70dac56d909341aa92d4821b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# VPP interface stats client {#if_stats_client_doc}

This is a source code and a binary of a 'thin client' to collect, 
aggregate and expose VPP interface stats through VPP stats socket API. 
It also provides some information about the installed VPP version.

This can be used by monitoring systems that needs to grab those details 
through a simple executable client with no dependencies.

example use case: where VPP runs in a container that can't expose the socket API to the host level


## Prerequisites (for building)

**GoVPP** library (compatible with VPP 18.10)
vpp, vpp-api, vpp-lib

## Building

```bash
go get git.fd.io/govpp.git
go build
``` 

## Using (post-build for example on linux 64bit)

```bash
./bin/vpp_if_stats_linux_amd64
```

## Output examples

[JSON schema](./response_schema.json)
[Example](./response_example.json)