DOG Stack Deployment
Deploy the OpenTelemetry Collector and Grafana in your environment, then connect them to a VeloDB Cloud warehouse. You do not deploy Apache Doris FE or BE services for this setup. The same architecture can use a SaaS or BYOC warehouse when the Collector and Grafana can reach its endpoints.
Use the Quick Start for a local Docker Compose proof of concept. Use the production checklist below when adapting the components to Kubernetes, virtual machines, or an existing Grafana deployment.
Choose a deployment approach
| Approach | Use it for | Configuration responsibility |
|---|---|---|
| Docker Compose with an external warehouse | Local development and proof of concept. | Configure the external VeloDB Cloud endpoints and credentials in the supplied environment file. |
| Kubernetes | A Collector and Grafana deployment managed with your existing Kubernetes tooling. | Configure component charts or manifests, secrets, persistence, network policies, and the external warehouse connection. |
| Existing Collector and Grafana services | Add warehouse storage and Doris App to services you already operate. | Add the Doris exporter, install and enable the app plugin, and configure a MySQL data source. |
Connection prerequisites
Before deploying either service:
- Create or choose a running warehouse and cluster.
- Open Connect in the VeloDB Cloud console and copy the connection details for the network path you will use. See Connection Methods.
- Confirm that the Collector and Grafana hosts can resolve and reach those endpoints. For private access, configure routing and DNS from the services' network. For public access, allow their egress IP addresses where an allowlist applies.
- Create warehouse SQL credentials for the services. The Collector needs privileges to load telemetry and, if automatic schema creation is enabled, create the required database and tables. Grafana needs read access to the telemetry tables.
- Keep the generated protocol, port, and TLS requirements. Check TLS configuration support in the exporter version and Grafana data source you deploy. Endpoint and port values differ by warehouse and connection method.
The services use two protocols:
| Client | Protocol | Purpose |
|---|---|---|
| Collector Doris exporter | Stream Load over HTTP or HTTPS | Write logs, traces, and metrics. |
| Collector Doris exporter | MySQL | Set up schemas when automatic table creation is enabled. |
| Grafana MySQL data source | MySQL | Read telemetry for exploration, dashboards, and alerts. |
Do not substitute self-managed Apache Doris FE or BE addresses for the warehouse endpoints. Stream Load may involve additional cluster-specific ports. Use the connection requirements displayed for your warehouse.
Docker Compose
The AIObserve Stack repository includes a Compose file for an external storage backend. This file starts the Collector and Grafana without starting a local Apache Doris deployment.
git clone https://github.com/ai-observe/ai-observe-stack.git
cd ai-observe-stack/docker
cp .env.example .env
Edit .env with your warehouse connection details and local Grafana credentials as described in Quick Start. Review the repository configuration for the revision you use, including exposed ports, anonymous Grafana access, and plugin installation.
Start and inspect the services:
docker compose -f docker-compose-without-doris.yaml up -d
docker compose -f docker-compose-without-doris.yaml ps
docker compose -f docker-compose-without-doris.yaml logs --tail=100 otel-collector
A running container only confirms that the process started. Verify ingestion and queries by following the quick start's log, trace, and metric checks.
The local Grafana UI is available at http://localhost:3000. This address refers to your local demo service. Keep demo ports restricted to your development environment.
Stop the local services
Run the following from the docker directory:
docker compose -f docker-compose-without-doris.yaml down
This stops the local services. It does not delete telemetry in VeloDB Cloud or stop warehouse billing. Removing Compose volumes with down -v also deletes local persisted Grafana configuration, so export any dashboards you want to keep first.
Kubernetes
Deploy the Collector and Grafana with the charts or manifests you already use. Follow the official OpenTelemetry Kubernetes deployment guidance and Grafana Helm deployment guidance.
Adapt the deployment as follows:
- Select an OpenTelemetry Collector distribution and version that includes the Doris exporter. Add the receivers, processors, and logs, traces, or metrics pipelines required by your data sources.
- Store warehouse credentials in Kubernetes Secrets or your secret manager. Mount or inject them into the Collector and Grafana without committing passwords to chart values or manifests.
- Configure the exporter with the external warehouse endpoints. Do not enable a chart option that creates a self-managed Apache Doris cluster for this Cloud setup.
- Install and enable Doris App in Grafana. See Use your own Grafana.
- Configure a MySQL data source using the warehouse's generated host, port, credentials, and applicable TLS settings. See Dashboards.
- Give the Collector persistent queues and retries appropriate to your data-loss requirements. Configure Grafana persistence, authentication, and ingress for your environment.
- Verify that both services can connect from inside their pods, then confirm recent records in the warehouse and Grafana.
Collector placement depends on the signal. An OTLP gateway receives telemetry sent by applications. File and host collection generally need an agent with access to the relevant files or host resources. Review receiver permissions and avoid collecting the same source through multiple agents.
Existing services
For an existing deployment:
- Add the Doris exporter to the Collector configuration, using the documentation for your installed exporter version.
- Configure the exporter in each required telemetry pipeline. Exporting traces does not automatically enable logs or metrics.
- Install and enable Doris App in Grafana, then configure a read-only MySQL data source and the appropriate telemetry tables.
- Confirm data flow with a small test workload before enabling all production sources.
Production checklist
- Use separate ingestion and read-only query accounts. Once tables are provisioned, review whether the Collector still needs schema creation privileges.
- Configure transport encryption according to Encryption in Transit. A private endpoint alone does not encrypt the protocol.
- Restrict Collector receivers to trusted producers. Configure authentication and TLS where telemetry crosses network boundaries.
- Disable demo anonymous access and use your organization's Grafana authentication settings.
- Review the app package before allowing an unsigned Grafana plugin, and pin component versions for reproducible deployments.
- Set retention and monitor ingestion errors, queue capacity, dropped telemetry, and query load. Dashboard refresh intervals and alert evaluation intervals both consume warehouse compute.
- Budget for warehouse usage, Collector and Grafana infrastructure, and applicable network transfer charges.
Common errors
| Symptom | Check and resolution |
|---|---|
| Exporter cannot connect or times out | Verify DNS, routing, allowlists, the Stream Load endpoint, and all required ingestion ports from the Collector host or pod. |
| Authentication or permission errors | Confirm the warehouse SQL credentials and the privileges needed for loading and schema setup. Update both services after credential rotation. |
| Containers run but Grafana has no data | Inspect Collector export errors, confirm records exist in the expected database and tables, and widen the Grafana time range. |
| MySQL connection fails when TLS is required | Configure the client's TLS settings for the generated warehouse endpoint. Check support in your installed exporter version before using a bundled configuration. |
| Doris App is missing | Confirm the plugin is installed, allowed by Grafana, and enabled for the organization. Restart Grafana after changing plugin configuration. |
For warehouse availability or connection issues that remain after these checks, contact VeloDB Cloud support.