Last update: May 7, 2021
krakend.json file whether it is a single file or the result of using the flexible configuration, it might be a complex file. A generated image of the configuration might help you understand better the running configuration.
The config2dot generator will generate internally an intermediate DOT dile that you can render into a
png image with GraphViz or similar software.
The following image illustrates an example of a KrakenD configuration:
The command needed to generate a DOT file is
krakend generate config2dot:
Once you have generated the
dot file, you get a plain text content that is ready to be rendered by any software library that is capable of processing dot files. A good of example is Graphviz.
You can install Graphviz on Linux (Debian/Ubuntu) with the following command, but other distributions are similar:
Or you can also add Graphviz to the official Enterprise Docker image (gets heavier):
RUN apk update RUN apk add graphviz
Then you can generate the image with the following command:
The documentation is only a piece of the help you can get! Whether you are looking for Open Source or Enterprise support, see more support channels that can help you.