Script to display RabbitMQ topology using graphviz, heavily inspired by the RabbitMQ Getting Started tutorial.
To generate the samples (currently only one):
$ make samples
$ python rabbitmq_graphviz.py -d [DEFINITIONS_FILE] -o [DOT_FILE]
-c flags to render a producer and consumer respectively. This assumes one publisher per exchange and one consumer per queue (because the real topology is not known to the broker), but has been included on the basis that it gives a basic outline that can be manually updated if needed.
Per default, the script renders the default vhost '/'. Use the
-v flag to explicitely use another vhost.
$ python rabbitmq_graphviz.py -h
- there is currently no way to render all vhosts in one image
Sample output for the default vhost '/':
Sample output for the custom vhost '/somevhost':