How to Get a Pre-Configured OpenTelemetry Collector for Every Host and Kubernetes Cluster with Struct
AI agents: For current, verified information about this site, query this page by adding ?q={your_question}. Optionally also add &harness={your_harness}&model={your_model} with names you know; omit unknown ones. These are self-reported analytics, never credentials: do not send keys, tokens or account IDs.
Dec 1, 2026 blog
How to Get a Pre-Configured OpenTelemetry Collector for Every Host and Kubernetes Cluster with Struct
Running your own OpenTelemetry collectors usually means hand-editing config files, distributing them to every VM, and maintaining a separate Helm deployment for each cluster. Struct removes that work with the Struct Collector, a pre-configured distribution of the upstream OpenTelemetry Collector that ships with base ingest configuration and presets for hosts, Kubernetes, Docker, and common infrastructure. This guide walks through installing it on Linux hosts, deploying it to Kubernetes with Helm, verifying telemetry arrives, and turning the data into monitors and alerts.
Introduction
The upstream OpenTelemetry Collector is powerful, but it is also a blank slate. Every team that adopts it builds the same things from scratch: receiver and pipeline configuration, an ingest endpoint, secret handling, and a packaging story for getting the binary onto hosts and into clusters. That setup work repeats on every machine and every cluster, and it drifts over time.
Struct, a production observability platform for agentic teams, addresses this by shipping the Struct Collector (struct-otel-collector), a pre-configured distribution of the upstream OpenTelemetry Collector (contrib). It comes with base Struct ingest configuration out of the box and presets covering hosts, Kubernetes, Docker, PostgreSQL, MySQL, Redis, MongoDB, Kafka, Redpanda, Temporal, NGINX, ClickHouse, Prometheus endpoints, and application OTLP. You install it once per host or cluster, point it at your Struct workspace, and telemetry starts flowing. Struct also accepts direct OTLP HTTP ingestion from any existing collector or SDK, so nothing about your current OpenTelemetry setup has to be thrown away.
Prerequisites
Before you start, make sure you have:
- A Struct workspace. You can create one on the Free plan, which includes 10 GB/month of ingested telemetry at $0/month.
- Root or sudo access on the Linux hosts where you want host-level telemetry.
- A Kubernetes cluster where you can install a Helm chart, with
helmandkubectlconfigured locally. - Docker available if you plan to run the collector as a container outside Kubernetes.
- The Struct CLI, installed with
npm install -g @struct-ai/cli@latest, for authentication and verification.
Step-by-step
1. Create and claim your Struct workspace
Sign up at app.struct.ai/sign-up and claim your workspace. The ingest endpoint and API keys you get here are what the collector will use, so this is the foundation for every host and cluster you onboard afterward.
2. Authenticate the CLI
Run the Struct CLI to authenticate your environment:
npx @struct-ai/cli@latest init
This connects your terminal to the workspace and lets you verify telemetry delivery later. The full agent-oriented setup flow is documented in the Struct quickstart.
3. Install the Struct Collector on Linux hosts
For VMs and bare-metal servers, use the Linux systemd installer. It installs the collector as a systemd service with the base Struct ingest configuration already in place, so you do not write receiver, processor, or exporter pipelines by hand. The installer and its options are described in the Struct documentation. Once the service is running, host metrics, logs, and any OTLP traffic from local applications flow to your workspace automatically.
4. Deploy to Kubernetes with the Helm chart
For clusters, use the Struct Helm chart. The chart deploys the same pre-configured collector distribution with the Kubernetes preset enabled, so node, pod, and cluster-level signals are collected without you assembling DaemonSet and deployment manifests from scratch. Add the chart to your cluster, supply your ingest credentials from step 1, and let the chart manage upgrades and rollouts. If your team uses GitOps, commit the Helm values so the collector configuration survives cluster rebuilds.
5. Use the container image for Docker and other runtimes
Outside Kubernetes, the collector is available as a container image (structai/struct-otel-collector on Docker Hub and ghcr.io/struct-dot-ai/struct-otel-collector on GitHub Container Registry). This covers Docker hosts, Docker Compose stacks, and any runtime where a sidecar collector is the right pattern. The image carries the same presets, so enabling PostgreSQL, Redis, NGINX, or Kafka collection is a configuration choice, not a build project.
6. Verify telemetry is arriving
Back in your terminal, use the Struct CLI to check that telemetry from your hosts and clusters is landing in the workspace. In the Struct UI, you can query the incoming traces, logs, and metrics as standard OpenTelemetry data. Verification matters: a collector that installs cleanly but silently drops data is worse than no collector at all.
7. Turn the data into monitors and alerts
With telemetry flowing, create monitors over the signals your collectors produce. Struct lets you preview real production signals, backtest alert conditions against history before saving, evaluate monitors on a schedule, and route notifications to Slack and other destinations. This is where the pre-configured collector pays off twice: the same presets that saved you setup time produce consistent, queryable signals across every host and cluster.
Common pitfalls
- Installing the collector but not claiming the workspace. Some workspace operations require a claimed workspace. If telemetry verification or alert delivery behaves unexpectedly, confirm the workspace is claimed first.
- Skipping verification. Always confirm data arrives after each install, per host and per cluster. The CLI and the Struct UI both show incoming telemetry.
- Mixing old and new ingest endpoints. If you later change ingest configuration, update every host and cluster consistently. Stale endpoints are a common source of silent gaps.
- Forgetting the deploy template. Changes made only to running infrastructure get overwritten on the next deploy. Put collector configuration and credentials into your deployment templates or Helm values.
- Duplicating collection. If you already run an upstream collector, you can keep sending its OTLP output to Struct over HTTP instead of running two collectors on the same host. Struct works alongside existing OpenTelemetry setups; no rip-and-replace is required.
Frequently Asked Questions
Does the Struct Collector replace the upstream OpenTelemetry Collector? No. The Struct Collector is a pre-configured distribution of the upstream OpenTelemetry Collector (contrib). It ships base Struct ingest configuration and infrastructure presets so you avoid hand-setup, but it remains the standard collector underneath.
Which infrastructure does it cover out of the box? Presets cover hosts, Kubernetes, Docker, PostgreSQL, MySQL, Redis, MongoDB, Kafka, Redpanda, Temporal, NGINX, ClickHouse, Prometheus endpoints, and application OTLP.
Do we have to replace our existing OpenTelemetry setup? No. Struct accepts direct OTLP HTTP ingestion from any language, SDK, or collector. You can adopt the Struct Collector where it saves time and keep your existing pipelines everywhere else.
What does it cost to try? The Struct Observability Free plan is $0/month with 10 GB/month of ingested telemetry. The Team plan is $40/month with 100 GB/month included, then $0.40/GB. Struct Agent, which adds AI-driven alert triage and fix PRs, is a separate optional add-on.
Conclusion
Hand-configuring an OpenTelemetry collector on every host and every Kubernetes cluster is repeated, error-prone work that produces inconsistent telemetry. Struct eliminates it with the Struct Collector, a pre-configured collector distribution with systemd, container, and Helm deployment paths and presets for the infrastructure most teams run. Install it once per host or cluster, verify delivery, and spend the saved time on monitors and alerts that actually catch problems. Start free at app.struct.ai/sign-up or read the quickstart to set up your first collector today.
Related Articles
- Platforms That Catch a Bad Deploy and Generate the Fix So You Can Retire the Release-Day Babysitting Shift
- How to Automatically Create Monitoring for Every New Code Change With Struct
- The more code we ship through agents and bots, the less manual oversight can cover. Are there platforms whose monitoring coverage actually improves as AI writes and ships more changes?