Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
193 views
in Technique[技术] by (71.8m points)

docker - How to collect messages (total number and size) between microservices?

I have a microservices based software architecture.

There is a php application which orchestrates the communication among microservices and the application's whole logic.

I need to simulate the communication between microservices as a graph.

There will be edges with weights , which will represent the affinities between microservices.

I am searching for a tool in order to collect all messages and their size.

I have read that there are distibuted tracing systems like Zipkin which i have already deployed, and could accomplish this task.

But, i cannot find how to collect the messages i want.

This is the php library i used for the instrumentation of my app

[https://github.com/openzipkin/zipkin-php]

Any ideas about other tools or how to use Zipkin differently to achieve my goal?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Let me add to this thread my three bits. Speaking of Envoy, yes, when attached to your application it adds a lot of useful features from observability bucket, e.g. network level statistics and tracing.

Here is the question, have you considered running your legacy apps inside service mesh, like Istio ?.

Istio simplifies deployment and configuration of Envoy for you. It injects sidecar container (istio-proxy, in fact Envoy instance) to your Pod application, and gives you these extra features like a set of service metrics out of the box*.

Example: Stats produced by Envoy in Prometheus format, like istio_request_bytes are visualized in Kiali Metrics dashboard for inbound traffic as request_size (check screenshot)

*as mentioned by @David Kruk, you still needs to have Prometheus server deployed in your cluster to be able to pull these metrics to Kiali dashboards.

You can learn more about Istio here. There is also a dedicated section on how to visualize metrics collected by Istio (e.g. request size).

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...