Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add reading VPP threads to the telemetry plugin #1753

Merged
merged 3 commits into from
Oct 26, 2020

Conversation

VladoLavor
Copy link
Collaborator

@VladoLavor VladoLavor commented Oct 22, 2020

  • Added 'GetThreads' for all supported VPP versions in
    the telemetry vppcalls. Data are read using the
    binary API (via govppmux)
  • VPP stats API telemetry handler also has CLI/binapi
    part in order to read data not yet available in stats
  • Added simple stats example reading VPP stats via the
    telemetry plugin
  • Fixed 'GetMemory' regex + added 'verbose' output to
    match VPPTop requirements

TODO:

  • Fix 'GetMemory' and add it to the example

Signed-off-by: Vladimir Lavor vlavor@cisco.com

@VladoLavor VladoLavor added ⚡️ feature 🚧 WIP do not merge! work in progress! labels Oct 22, 2020
@VladoLavor VladoLavor self-assigned this Oct 22, 2020
@VladoLavor VladoLavor changed the title Add reading VPP threads to the telemetry plugin feat: add reading VPP threads to the telemetry plugin Oct 22, 2020
* Added 'GetThreads' for all supported VPP versions in
  the telemetry vppcalls. Data are read using the
  binary API (via govppmux)
* VPP stats API telemetry handler also has CLI/binapi
  part in order to read data not yet available in stats
* Added simple stats example reading VPP stats via the
  telemetry plugin

TODO:
* Fix 'GetMemory' and add it to the example

Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
@codecov
Copy link

codecov bot commented Oct 22, 2020

Codecov Report

Merging #1753 into master will decrease coverage by 0.14%.
The diff coverage is 34.43%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1753      +/-   ##
==========================================
- Coverage   55.49%   55.34%   -0.15%     
==========================================
  Files         387      387              
  Lines       28187    28283      +96     
==========================================
+ Hits        15641    15653      +12     
- Misses      11028    11112      +84     
  Partials     1518     1518              
Flag Coverage Δ
#unittests 55.34% <34.43%> (-0.15%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

* VPP show memory regex now works correctly
* Command extended with 'verbose' to match VPPTop
  requirements

Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
ondrej-fabry
ondrej-fabry previously approved these changes Oct 23, 2020
@ondrej-fabry
Copy link
Member

# go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp1908_test [go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp1908.test]

plugins/telemetry/vppcalls/vpp1908/telemetry_vppcalls_test.go:340:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp1908/telemetry_vppcalls_test.go:364:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp1908/telemetry_vppcalls_test.go:411:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp1908/telemetry_vppcalls_test.go:432:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

# go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp2001_test [go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp2001.test]

plugins/telemetry/vppcalls/vpp2001/telemetry_vppcalls_test.go:340:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2001/telemetry_vppcalls_test.go:364:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2001/telemetry_vppcalls_test.go:411:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2001/telemetry_vppcalls_test.go:432:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

# go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp2005_test [go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp2005.test]

plugins/telemetry/vppcalls/vpp2005/telemetry_vppcalls_test.go:340:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2005/telemetry_vppcalls_test.go:364:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2005/telemetry_vppcalls_test.go:411:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2005/telemetry_vppcalls_test.go:432:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

# go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp2009_test [go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls/vpp2009.test]

plugins/telemetry/vppcalls/vpp2009/telemetry_vppcalls_test.go:340:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2009/telemetry_vppcalls_test.go:364:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2009/telemetry_vppcalls_test.go:411:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

plugins/telemetry/vppcalls/vpp2009/telemetry_vppcalls_test.go:432:5: unknown field 'Reclaimed' in struct literal of type "go.ligato.io/vpp-agent/v3/plugins/telemetry/vppcalls".MemoryThread

Signed-off-by: Vladimir Lavor <vlavor@cisco.com>
@VladoLavor VladoLavor removed the 🚧 WIP do not merge! work in progress! label Oct 26, 2020
@ondrej-fabry ondrej-fabry merged commit 680315b into ligato:master Oct 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants