Run Aidbox with OpenTelemetry locally

Get up-to-speed with Aidbox observability features via interactive tutorials.


This guide helps you to launch and explore the Aidbox observability features locally.

It introduces you to:

  • The Aidbox installation process with Docker & Docker Compose,

  • Logs & metrics & traces exporting to Elasticsearch & Prometheus & Zipkin using OpenTelemetry collector service.

Please make sure that both Docker & Docker Compose are installed.

Quickstart Guide

1. Get the Aidbox License for self-hosting

Create the Aidbox License for the 14-day trial period on, select self-hosted, or use the license that you already have.

The Aidbox License Key will be required in the next step, where we will prepare the configuration for Aidbox.

2. Configure the Aidbox

Aidbox is configured by dedicated Aidbox Configuration Projects.

You can start with the default configuration project published on our GitHub and customize it for your specific needs later. Select the FHIR version and clone the corresponding project with the Bash commands below:

git clone \
  --branch=open-telemetry-fhir-r5 \
  --depth=1 \ \
  aidbox-project && \
  cd aidbox-project && \
  rm -rf .git

Here is the basic structure of the Aidbox Configuration Project:

β”œβ”€β”€ .env
β”œβ”€β”€ docker-compose.yaml
β”œβ”€β”€ open-telemetry-config.yaml
β”œβ”€β”€ prometheus
β”‚Β Β  └── prometheus.yml
β”œβ”€β”€ grafana
β”‚Β Β  └── datasources
β”‚Β Β      └── all.yaml
β”œβ”€β”€ zen-package.edn
└── zrc/
    β”œβ”€β”€ config.edn
    └── main.edn

Aidbox Configuration Projects

Everything in Aidbox can be configured with a dedicated Aidbox Configuration Project from the FHIR version definition to enabling add-on modules.

This approach helps you keep configurations under a version control system and share them between Aidbox Instances.

Learn more.

Add the license key to your configuration project.

Update the .env file within your configuration project with the Aidbox License Key from Step 1:



3. Start Aidbox with Docker Compose

Start Aidbox with Docker Compose:

docker compose up --force-recreate

Navigate to http://localhost:8888/ and Sign In to the Aidbox UI using the login admin and password password.

4. Discover Aidbox logs with Kibana

Kibana should be available on http://localhost:5602 address. To see logs in Kibana we should

  • make sure that logs are coming to Elasticsearch and then

  • create a data view to observe over logs.

Go to Index Management page in Kibana (Menu β†’ StackΒ Management β†’ IndexΒ Management). You should see aidbox_logs index there.

Then we shoould go to DataΒ Views page (Menu β†’ Stack Management β†’Β Data Views) and create a data view there.

Then go to Discover page (Menu β†’ Discover) and observe your logs.

5. Discover Aidbox metrics with Prometheus

Prometheus should be available on http://localhost:9090 address. To see metrics in Prometheus we should open it and search for it.

6. Discover Aidbox traces with Zipkin

Zipkin should be available on http://localhost:9411/ address. To see traces in Zipkin click the Run query button.

Click the Show button to see all spans of a certain request.

Next Steps

Last updated