fabric

Quick Start

Clone the Project

Fetch the code:

mkdir github.com/microbus-io
cd github.com/microbus-io
git clone https://github.com/microbus-io/fabric

It is recommended to clone the code into a directory structure that mirrors the package structure.

Setup and Run the Development Environment

The Microbus framework depends on a few third-party services:

Use docker compose from within the setup directory to quickly install the above and set up the development environment.

cd setup
docker compose -f microbus.yaml -p microbus up

Docker Desktop should now show the microbus application:

Note that using Docker is not mandatory. You can also install the dependencies manually.

Run the Examples

Run the example app:

cd main
go run main.go

It is necessary to set the working directory to main so that the file main/config.yaml can be located.

If you’re using Visual Studio Code, simply press F5. The .vscode/launch.json file includes a launch configuration for running main.

Try the following URLs in your browser:

Feel free to experiment with different values for the query arguments.

To view the metrics collected by Prometheus, go to http://localhost:9090/graph. As an example, you may execute the query microbus_uptime_duration_seconds_total.

To view the same metrics in Grafana dashboards, go to http://localhost:3000 and login using the credentials admin:admin.

To view the distributed traces in Jaeger, go to http://localhost:16686.

Configure IDE

The Todo Tree extension is recommended for VS Code users.