Bootstrap CLI¶
An important aspect of Wishbone is the ability to bootstrap a server on CLI.
To bootstrap you need the following items:
Behind the scenes, the Wishbone bootstrap process automatically makes a couple of configurations:
- All the
_metricsqueues of all modules are connected awishbone.module.flow.funnelinstance called_metricsfrom where the user can optionally connect modules for further metric processing. - All the
_logsqueues of all modules are connected awishbone.module.flow.funnelinstance called_logs. The_logsmodule instance is then connected to awishbone.module.flow.queueselectinstance called_logs_filterin order to filter out the logs according to the--log_levelvalue. - If the
Wishboneserver is started with--forkthen_logs_filter.passis connected to awishbone.module.output.sysloginstance called_logs_syslogwhich has the effect all modules logs are written to syslog. - If the
Wishboneserver is started without--forkthen_logs_filter.passis connected to awishbone.module.output.stdoutinstances called_logs_stdoutwhich has the effect all modules logs are written to stdout.
The following bootstrap file:
hello_world.yaml¶
modules:
input:
module: wishbone.module.input.generator
arguments:
payload: hello world
output:
module: wishbone.module.output.stdout
routingtable:
- input.outbox -> output.inbox
Generates following setup when run in foreground:
This includes the user defined input.outbox -> output.inbox connections
including the auto-generated metrics and logs modules.