Description
When I retrieve stats using the following code block:
...
sc := statsclient.NewStatsClient("/tmp/run/vpp/stats.sock")
stats, err := core.ConnectStats(sc)
if err != nil {
panic(err)
}
fmt.Println("now calling GetSystemStats()")
sysstats := api.SystemStats{}
if err := stats.GetSystemStats(&sysstats); err != nil {
panic(err)
}
fmt.Println("got", len(sysstats.VectorRatePerWorker), "entries")
for i, stat := range sysstats.VectorRatePerWorker {
fmt.Println(i, stat)
}
i do not get the right values. here is the output of the program, and i had added a loop that finds the right values:
./mytest
my loop starts now, which show the right stats
per worker [0 26 197 21]
now calling GetSystemStats() <<<<
got 1 entries <<<<
0 0
How to reproduce
Steps to reproduce the behavior:
1- connect to the stats client
2- call GetSystemStats using a core.StatsConnection
3- check that the values returned don't match the expectation
Expected Behavior
return vector rate per worker - an array with 3 elements indexed by worker id
Screenshots/Logs
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information)
| Info |
Example |
Value |
| OS/arch |
e.g. linux/amd64 |
linux amd/64 |
| VPP version |
v24.02-release |
v26.06 |
| GoVPP version |
v0.8.0 |
v0.11.0 |
Additional context
Description
When I retrieve stats using the following code block:
i do not get the right values. here is the output of the program, and i had added a loop that finds the right values:
How to reproduce
Steps to reproduce the behavior:
1- connect to the stats client
2- call GetSystemStats using a core.StatsConnection
3- check that the values returned don't match the expectation
Expected Behavior
return vector rate per worker - an array with 3 elements indexed by worker id
Screenshots/Logs
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information)
Additional context