DOG Stack Quick Start
Deploy the AIObserve Stack with VeloDB Cloud as the observability storage backend. It starts an OpenTelemetry Collector and Grafana, then optionally connects the OpenTelemetry Demo e-commerce application to generate telemetry.
This deployment is for local development and proof of concept use. Before production use, create separate least-privilege accounts for ingestion and read-only queries, disable demo anonymous Grafana access, and review Deployment. The load generator continuously produces telemetry and consumes warehouse compute, storage, and applicable data transfer. See Billing and stop the demo when you finish.
What you will deploy
Instrumented application
-> OpenTelemetry Collector
-> VeloDB Cloud
-> Grafana with Doris App
The base stack starts the Collector and Grafana. The optional e-commerce demo starts separately so that it reuses the same Collector and Grafana instead of starting duplicate services.
Prerequisites
- A VeloDB Cloud warehouse that is running.
- Docker Desktop with Docker Compose v2.
- A warehouse SQL user with permission to create the telemetry database and tables and load data. The bundled Grafana configuration may reuse this user for queries. Use separate credentials for production.
- Network access from the Docker host to the warehouse endpoints and required ports. For private endpoints, connect the host to the corresponding network. For public endpoints, configure the applicable IP allowlist.
- Collector and Grafana versions that support the connection and TLS settings required by your warehouse. The environment file below does not configure MySQL TLS by itself. If your warehouse requires it, adapt the exporter and Grafana data source configuration before starting. See Connection Methods.
Open Connect in the VeloDB Cloud console and record the following values for the network path you will use:
| Value | Used for |
|---|---|
| Stream Load endpoint, including protocol and port | Collector telemetry ingestion |
| MySQL host and port | Collector schema setup and Grafana queries |
| Warehouse SQL username and password | Authentication to the warehouse |
Copy the generated endpoint and ports. Do not assume that a self-managed Apache Doris port or a sample port applies to your warehouse. Keep any HTTPS and MySQL TLS requirements shown in the generated connection details.
1. Deploy the base stack
Clone the repository and create a local environment file:
git clone https://github.com/ai-observe/ai-observe-stack.git
cd ai-observe-stack/docker
cp .env.example .env
Edit .env and replace every angle-bracket placeholder with your own value. For DORIS_FE_HTTP_ENDPOINT, use the exact Stream Load endpoint from Connect, including its generated http:// or https:// scheme. The current repository uses DORIS_* variable names for compatibility with the Doris exporter. They are also the correct variables when VeloDB Cloud is the storage backend.
# Include the protocol for the HTTP endpoint.
DORIS_FE_HTTP_ENDPOINT=https://<warehouse-stream-load-host>:<stream-load-port>
# Use the MySQL host and port from Connect, without a URL scheme.
DORIS_FE_MYSQL_ENDPOINT=<warehouse-mysql-host>:<mysql-port>
DORIS_USERNAME=<warehouse-sql-user>
DORIS_PASSWORD=<warehouse-sql-password>
DORIS_DATABASE=otel
DORIS_TABLE_LOGS=otel_logs
DORIS_TABLE_TRACES=otel_traces
DORIS_TABLE_METRICS=otel_metrics
# Use an IANA timezone name that matches your working location.
DORIS_TIMEZONE=America/Los_Angeles
# These credentials are for your local Grafana instance.
GRAFANA_ADMIN_USER=admin
GRAFANA_ADMIN_PASSWORD=<local-grafana-password>
Keep .env private and exclude it from version control. Quote values according to Docker Compose environment-file syntax if they contain special characters.
Do not run source .env before starting Docker Compose. Shell environment variables have higher priority than values in .env, so an old exported value can silently override an edited password or endpoint.
Start the external VeloDB Cloud mode:
docker compose -f docker-compose-without-doris.yaml up -d
docker compose -f docker-compose-without-doris.yaml ps
Both grafana and otel-collector should show as running. Grafana is available at http://localhost:3000.
Troubleshoot warehouse readiness
If Collector logs report No backend available for load, confirm that the selected warehouse and cluster are running. A started Collector does not confirm that the warehouse can accept writes. Inspect the errors with:
docker compose -f docker-compose-without-doris.yaml logs --tail=100 otel-collector
After the cluster is ready, recreate the Collector if it has stopped retrying:
docker compose -f docker-compose-without-doris.yaml up -d --force-recreate otel-collector
For persistent availability errors, contact VeloDB Cloud support. For timeouts, authentication failures, or TLS errors, use the checks in Common errors.
2. Verify the bundled Doris App
Doris App is the Grafana app plugin that provides the observability workflows used in this guide, including Discover, Traces, and pre-provisioned dashboards. It queries the logs, traces, and metrics that the Collector stores in VeloDB Cloud.
The Compose configuration used by this guide bundles and enables Doris App. Check the configuration in the repository revision you clone because image and plugin packaging can change. Confirm that the plugin is present in the Grafana container:
docker compose -f docker-compose-without-doris.yaml exec grafana \
ls /var/lib/grafana/plugins/velodb-doris-app/plugin.json
The command prints the plugin manifest path. You can also confirm the user-facing result by opening http://localhost:3000/a/velodb-doris-app/discover. If the Doris App navigation entry and the Discover page are available, the plugin is installed and enabled.
Use your own Grafana
If you use an existing Grafana deployment instead of the Grafana container in this guide, install and enable Doris App before following the verification steps.
-
Download the Doris App release package from the Doris App releases page. Extract it into Grafana's plugin directory as
velodb-doris-app. -
Allow the unsigned plugin in your Grafana configuration:
GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=velodb-doris-app -
Provision the app by creating a file such as
provisioning/plugins/doris-app.yaml:apiVersion: 1apps:- type: velodb-doris-apporg_id: 1disabled: false -
Restart Grafana, then open Doris App from the Grafana navigation. Configure a MySQL data source for your VeloDB Cloud warehouse with a read-only warehouse SQL user and the applicable TLS settings. See Dashboards.
For a Docker-based Grafana deployment, mount the extracted plugin directory at /var/lib/grafana/plugins/velodb-doris-app and mount the provisioning file at /etc/grafana/provisioning/plugins/doris-app.yaml. Review the plugin before allowing an unsigned plugin in a production environment.
3. Open Grafana
Open http://localhost:3000. Anonymous users have Viewer access and can explore the pre-provisioned dashboards. Select Sign in and use the local Grafana credentials from .env when you need to create a dashboard or edit a query.
The pre-provisioned dashboards are read-only from the Grafana UI. Create a personal dashboard for experiments instead of editing a pre-provisioned dashboard.
4. Optional: run the e-commerce demo application
The external VeloDB Cloud Compose file starts only the Collector and Grafana. It does not start an application that produces telemetry.
The same repository includes the OpenTelemetry Demo e-commerce application. The following steps connect its application services to the existing base stack without starting a second Collector, Grafana, or storage backend.
From ai-observe-stack/docker, confirm the base stack network name:
docker network ls --filter name=aiobs-net
For a default clone, the name is docker_aiobs-net. If your output uses a different name, use that name in the override file below.
Create ../doris-opentelemetry-demo/docker-compose.app-only.yml with the following contents. Replace docker_aiobs-net if your base stack uses a different network name:
networks:
default:
external: true
name: docker_aiobs-net
Start the application dependencies:
cd ../doris-opentelemetry-demo
docker compose \
-f docker-compose.minimal.yml \
-f docker-compose.app-only.yml \
up -d --no-deps valkey-cart flagd
Start the application services:
docker compose \
-f docker-compose.minimal.yml \
-f docker-compose.app-only.yml \
up -d --no-deps \
ad cart currency email payment product-catalog quote recommendation shipping \
checkout image-provider frontend load-generator frontend-proxy
The first image pull can take several minutes. If an image fails to download, inspect the image name and tag in your Compose file, resolve the download error, and rerun the command. Use the tags from your checked-out repository revision.
Confirm that the application services are running:
docker compose \
-f docker-compose.minimal.yml \
-f docker-compose.app-only.yml \
ps
Open http://localhost:8080 to use the storefront. Browse products, add an item to the cart, and place an order. The Load Generator also creates background traffic automatically.
5. Verify traces
In Grafana, open Doris App and then Traces. Select the following values:
- Data source: Doris
- Database:
otel - Table:
otel_traces - Time range: Last 15 minutes
Select load-generator as the Service and click Find Traces. Open a recent trace to see an end-to-end order flow such as:
load-generator
-> frontend-proxy
-> frontend
-> checkout
-> cart, payment, shipping, email
If a search by an internal service such as checkout returns no traces, search by an entry service such as load-generator, then inspect its trace waterfall. Also confirm that the selected time range includes the demo requests.
6. Verify logs
Open Doris App and then Discover. Select otel_logs and use Lucene mode. The following query finds e-commerce proxy access logs:
body:"/api/checkout"
The current demo exports frontend-proxy access logs through OTLP. Application logs written only to a container's standard output, such as the checkout service's payment went through message, are not collected by the base stack. The Collector accepts OTLP logs only and does not scrape Docker container stdout.
7. Verify metrics
Create a personal Grafana dashboard, add a Table visualization, select the Doris data source, and run the following query:
SELECT
metric_name,
COUNT(*) AS sample_count
FROM (
SELECT timestamp, metric_name, service_name
FROM otel.otel_metrics_sum
UNION ALL
SELECT timestamp, metric_name, service_name
FROM otel.otel_metrics_histogram
UNION ALL
SELECT timestamp, metric_name, service_name
FROM otel.otel_metrics_gauge
) AS all_metrics
WHERE $__timeFilter(timestamp)
AND service_name = 'checkout'
GROUP BY metric_name
ORDER BY sample_count DESC;
With the dashboard time range set to Last 15 minutes, the query returns metrics such as rpc.client.duration, rpc.server.duration, and Go runtime metrics. sample_count is the number of stored metric samples. It is not a request count or an order count.
What you have verified
Successful trace, log, and metric checks confirm the following telemetry path:
E-commerce demo traces and metrics
-> OpenTelemetry Collector
-> VeloDB Cloud
-> Grafana
The demo also verifies proxy access logs. To collect application stdout logs, add a log collector or configure the application to export logs through OTLP.
8. Stop the demo
From the root of your cloned repository, stop the e-commerce application while keeping the base Collector and Grafana running:
cd doris-opentelemetry-demo
docker compose \
-f docker-compose.minimal.yml \
-f docker-compose.app-only.yml \
down
From the same application directory, stop the base stack when you finish:
cd ../docker
docker compose -f docker-compose-without-doris.yaml down
Stopping the local containers does not delete the otel database or stop warehouse billing. If you created a dedicated test database and no longer need its data, remove it after stopping all writers. Do not delete a database used by other telemetry sources. Review Billing for the resources that continue to incur charges.
Common errors
| Symptom | Check and resolution |
|---|---|
| Collector connection timeout | Verify the host, protocol, ports, routing, and IP allowlist from the Docker host. Use the warehouse's generated Stream Load details. |
Authentication fails after editing .env | Check for exported shell variables overriding .env, confirm the password, and recreate the containers. |
| TLS handshake or MySQL TLS errors | Confirm that the installed exporter and Grafana data source are configured for the warehouse's required TLS mode. An HTTPS ingestion URL does not configure MySQL TLS. |
| No traces or logs | Confirm that the application containers are running, the external network name matches, and the time range includes recent traffic. Inspect Collector export errors. |
| No host, Kubernetes, or application stdout data | The base configuration receives OTLP. Add the corresponding receivers or log collectors for signals that applications do not export through OTLP. |
| A dashboard reports an unknown table | Check which signal pipelines are enabled and inspect the tables created by your exporter version. Metric types use separate tables. |
Next steps
- Search logs and analyze traces.
- Build dashboards and configure alerts.
- Review Deployment before adapting the proof of concept for production.