diff options
Diffstat (limited to 'examples/stats-api')
-rw-r--r-- | examples/stats-api/README.md | 7 | ||||
-rw-r--r-- | examples/stats-api/stats_api.go | 3 |
2 files changed, 6 insertions, 4 deletions
diff --git a/examples/stats-api/README.md b/examples/stats-api/README.md index 77afad8..5511bf4 100644 --- a/examples/stats-api/README.md +++ b/examples/stats-api/README.md @@ -6,8 +6,10 @@ This example demonstrates how to retrieve statistics from VPP using [the new Sta The following requirements are required to run this example: -- install **VPP 18.10+** -- enable stats in VPP: +- install **VPP 18.10+** (VPP 19.04+ for goclient) +- enable stats in VPP + +To enable stats add following section to you VPP config: ```sh statseg { @@ -16,7 +18,6 @@ The following requirements are required to run this example: } ``` > The [default socket](https://wiki.fd.io/view/VPP/Command-line_Arguments#.22statseg.22_parameters) is located at `/run/vpp/stats.sock`. -- run the VPP (ideally with some traffic) ## Running example diff --git a/examples/stats-api/stats_api.go b/examples/stats-api/stats_api.go index e20ce7a..a42e3d2 100644 --- a/examples/stats-api/stats_api.go +++ b/examples/stats-api/stats_api.go @@ -36,8 +36,9 @@ import ( var ( statsSocket = flag.String("socket", adapter.DefaultStatsSocket, "Path to VPP stats socket") - goclient = flag.Bool("goclient", true, "Use pure Go client for stats API") dumpAll = flag.Bool("all", false, "Dump all stats including ones with zero values") + + goclient = flag.Bool("goclient", false, "Use pure Go client for stats API") ) func init() { |