Skip to content
Discussion options

You must be logged in to vote

Hey 👋

Think you can make use of the cli viz extension to do this. If you're running latest (2.10) you need to install linkerd and then linkerd-viz (linkerd viz install | kubectl (..)).

With viz, you can get tcp stats using the cli. Normally, running the command gives you inbound stats for the resource you select; if you use --from or --to you can get outbound stats on it too. For TCP load, you can use the -o wide flag to get bytes written/read.

Putting it all together: if we have a microservice foo that talks to bar we can:

  • Get inbound stats for foo: linkerd viz stat deploy/bar -o wide
  • Get outbound stats for foo: linkerd viz stat deploy/foo -o wide (note: works with namespaces, deploys, …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GabriFila
Comment options

@mateiidavid
Comment options

@GabriFila
Comment options

Answer selected by GabriFila
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants