HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

How to visualize dynamic microservice architecture running with Consul?

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
visualizearchitecturehowconsulwithmicroservicerunningdynamic

Problem

Using Consul, you could allow your teams decentrally deploy and run microservices with dynamic dependencies.

It is also possible to list the services: /catalog/service/:service

Now, how to assess these dependencies automatically if the architecture grows dynamically to get a visual representation of service inter-dependencies?

Solution

I recommend that you take a look at the NetworkX library for Python. With a script you could query Consul and build a graph of linked nodes which could be rendered to an image file and served with a web server. A Flask microservice for this would be fairly simple to set up and provide a very useful visualization of your microservices spiderweb.

Context

StackExchange DevOps Q#1419, answer score: 3

Revisions (0)

No revisions yet.