Document updated on May 7, 2021
Generate graphs from your configuration
The 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 to immediately render it to a png
image.
The following image illustrates an example of a KrakenD configuration:
Generating the Postman collection
The command needed to generate the Postman collection is krakend generate postman
:
Command to start KrakenD
$krakend generate config2dot -h
╓▄█ ▄▄▌ ╓██████▄µ
▐███ ▄███╨▐███▄██H╗██████▄ ║██▌ ,▄███╨ ▄██████▄ ▓██▌█████▄ ███▀╙╙▀▀███╕
▐███▄███▀ ▐█████▀"╙▀▀"╙▀███ ║███▄███┘ ███▀""▀███ ████▀╙▀███H ███ ╙███
▐██████▌ ▐███⌐ ,▄████████M║██████▄ ║██████████M███▌ ███H ███ ,███
▐███╨▀███µ ▐███ ███▌ ,███M║███╙▀███ ███▄```▄▄` ███▌ ███H ███,,,╓▄███▀
▐███ ╙███▄▐███ ╙█████████M║██▌ ╙███▄`▀███████╨ ███▌ ███H █████████▀
`` `'`
Version: v1.3.0
Generates a DOT graph from your KrakenD configuration.
Usage:
krakend generate config2dot [flags]
Examples:
krakend generate config2dot -c config.json -o config.png
Flags:
-h, --help help for config2dot
Global Flags:
-c, --config string Path to the configuration filename
-d, --debug Enable the debug
-o, --out string Path to the generated result. (default "out.json")
