Give every OpenTelemetry collector a home in Fleet with one YAML block
Fleet Server speaks OpAMP now, so a collector running the upstream extension turns up in the Agents list beside your Elastic Agents, with its health, its effective configuration and a graph of its pipelines. No supervisor binary required.
Elastic speaks OpenTelemetry natively. Send traces, logs, and metrics over OTLP straight into Elasticsearch, no proprietary agents required. See how it fits together, try it for free in the cloud, or run it locally.
Fleet now monitors any OpenTelemetry (OTel) collector. Add the upstream opamp extension (one block of YAML), and the collector shows up in Fleet next to your Elastic Agents, with its health and effective configuration, along with a graph of its pipelines. There’s no sidecar to deploy or supervisor binary to run. Elastic Agent running as an OTel collector works, as does the contrib distribution and anything else that ships the extension.
Fleet Server speaks Open Agent Management Protocol (OpAMP), and it stores collectors in the same data model as Elastic Agent, so a collector appears in the Agents list and uses the same API keys and spaces. OTel collector monitoring is in technical preview starting in Elastic Stack 9.4 and in Elastic Observability Serverless projects. Remote configuration isn't supported yet. In this blog post, we cover the YAML and what a daily test with 10,000 simulated collectors does (and doesn't) prove, in addition to one OpAMP flag that made a client stop respecting its polling interval.
A note on naming: starting with Elastic Stack 9.5, the collector previously called the Elastic Distribution of OpenTelemetry (EDOT) Collector is part of Elastic Agent, and the EDOT brand is retired. In this post, "Elastic Agent running as an OTel collector" refers to that collector.
What's in Elastic Stack 9.4 and what's in 9.5
Collector monitoring shipped in 9.4, and most of the interface came in 9.5.
Capability | Elastic Stack 9.4 | Elastic Stack 9.5 |
|---|---|---|
Runtime picker in the flyout | Not available | Choose Elastic Agent or contrib; sets the start command shown |
Collector details view | Agent details tab, with an overview panel and a component health panel | Dedicated page with a Collector (OpAMP) badge: pipeline graph, health, effective configuration, info, error patterns |
Removing collectors | Not available | Remove active collectors singly or in bulk; recorded in the Agent activity log |
Kibana spaces | Collector isn’t placed in the token's space | Collector lands in the space of its enrollment token |
Offline threshold | About five minutes of missed check-ins | About six minutes of missed check-ins |
Inactive collectors | Not applied | An offline collector goes inactive after one day and drops out of the default view |
ReportFullState flag | Not set; clients send only what changed | Set on every response; clients send complete state, including effective configuration |
Sequence gaps | Sequence number stored per collector | Fleet Server notices gaps and logs them |
RequestInstanceUid flag | Not handled | A collector setting the flag is treated as a new enrollment |
Where OTel collectors fit in Fleet
Before OpAMP support, a Fleet deployment looked like this: Elastic Agent checked in with Fleet Server, and Fleet Server stored the agents’ state in Elasticsearch. Then, the Fleet UI in Kibana read it back. Agents sent their own logs and metrics to Elasticsearch for self-monitoring, and they received policies from Fleet Server:
OTel collectors weren't part of that picture. If you ran a fleet of collectors, you could ship their internal telemetry somewhere, but there was no inventory of which collectors existed. Nor was there an inventory of which ones were healthy or the configuration that they were running. Teams run collectors as gateways, per-host agents, or both, so the gap grows with every deployment.
What is OpAMP?
OpAMP is an OTel protocol for remotely monitoring and managing agents. A client and server exchange protobuf messages over WebSocket or plain HTTP. The client reports its identity, health, effective configuration, and capabilities in AgentToServer messages. The server can reply with remote configuration, connection settings, package updates, and commands in ServerToAgent messages.
Upstream ships two client-side pieces for the collector:
The opamp extension, which you add to the collector configuration. It reports state to an OpAMP server, but it can't accept remote configuration. That makes it a monitoring tool.
The OpAMP Supervisor, a separate binary that runs the collector as a subprocess, writes the configuration it receives from the server, and restarts the collector. That’s what enables remote management.
On the server side, the opamp-go library provides client and server packages, but upstream doesn't ship a ready-to-run OpAMP server. Each vendor builds its own, and OpAMP is becoming the common way to manage collectors: Grafana Cloud Fleet Management, Bindplane, and Coralogix Fleet Management all build on it. Fleet Server builds on the opamp-go server package. Elastic already uses OpAMP to centrally configure its OTel SDKs, and Fleet support for collectors extends that to the collector side.
When we compared OpAMP's management architecture with Fleet's, the two lined up closely. Elastic Agent is already a supervisor process that runs an OTel collector as a subprocess and connects to a central management server, Fleet Server, as described in Accelerate OTel adoption with Elastic Agent hybrid ingestion. OpAMP doesn't need any new architectural components on our side. It’s an open protocol for the supervisor and management server that Fleet already has. So, instead of building a separate collector management service, we added OpAMP monitoring support to Fleet Server.
How to connect an OTel collector to Fleet
In Kibana, go to Fleet and open the Agents tab.
Click Add, and then select Collector (OpAMP).
In the flyout, enter a few details, such as the collector's display name. Starting in 9.5, you also choose your runtime (Elastic Agent or the contrib distribution), which sets the start command that the flyout shows.
Optionally, click Create API key to generate an exporter API key and add it to the configuration.
Copy or download the generated configuration.
The generated configuration contains:
The opamp extension, pointed at Fleet Server, with the enrollment token already filled in.
An OTel Protocol (OTLP) receiver.
An exporter with logs and metrics, plus trace pipelines: elasticsearch/otel, or otlp/managed when your deployment uses the Managed OTLP (mOTLP) endpoint (introduced in this post).
Internal telemetry settings, so the collector sends its own metrics and logs to Elasticsearch.
The part that connects the collector to Fleet is a single extension block:
extensions:
opamp:
server:
http:
endpoint: https://<your-fleet-server-host>/v1/opamp
headers:
Authorization: ApiKey <enrollment-token> # filled in by the flyout
instance_uid: "<instance-uid>" # generated by the flyout
service:
extensions: [opamp]A few notes on this configuration:
Fleet Server supports the plain HTTP transport at /v1/opamp.
Authentication uses a Fleet enrollment token in the Authorization: ApiKey header. Requests without it get a 401. The token is written into the configuration file, so treat the file as a secret or move the token to an environment variable: Authorization: ApiKey ${env:FLEET_ENROLLMENT_TOKEN}.
The flyout generates the instance_uid. Fleet uses it as the collector's identity, so it must be stable and unique per collector. If you leave it out, the extension generates a new one on every start and the collector shows up as a new collector each time. If you deploy the same configuration to several hosts, give each collector its own universally unique identifier (UUID); for example, by opening the flyout again for each one. Otherwise, they share one entry in Fleet.
On self-managed deployments, the generated configuration sets tls.insecure_skip_verify: true for the Fleet Server connection. Replace it with a certificate authority (CA) file before you deploy to production, as described in the Fleet docs.
If you already run a collector that exports to Elasticsearch, merge the generated configuration into yours instead of replacing it.
Before you start the collector, make sure that every placeholder in the generated configuration resolves. The generated configuration uses ${env:HOSTNAME} for the collector's display name and service.instance.id. Fleet uses service.instance.id to look up the collector's metrics, so set HOSTNAME in the collector's environment or replace it with a name that’s unique to that collector. If you didn't use Create API key, replace ${API_KEY} with your own key.
Start Elastic Agent running as an OTel collector with:
./otelcol --config ./otel-opamp.yamlOr start the contrib distribution with:
./otelcol-contrib --config ./otel-opamp.yamlWhen the collector sends its first message, Fleet Server enrolls it. The flyout shows a confirmation when the collector connects, and the collector appears in the Agents list.
Since this is the upstream extension, the same block works for Elastic Agent running as an OTel collector (9.2.7 or later), otelcol-contrib, and any other distribution that includes opampextension (0.103.0 or later). The upstream extension itself is at alpha stability.
What Fleet shows about each OTel collector
The View OTel Collectors in Fleet docs describe each of these views in detail.
OTel collectors in the Fleet Agents list
Connected collectors appear in the Agents list next to your Elastic Agents, with their status, version, host, and last check-in, plus CPU and memory usage when internal telemetry is enabled. The version column shows the version that the collector reports for itself, such as 0.144.0 for an upstream collector. Collectors are enrolled in a managed OpAMP policy that’s hidden from the Agent policies tab, so the policy column shows a dash. To list only collectors, select OpAMP in the Agent policies filter.
Status comes from the health that the collector reports. A collector that stops checking in is marked offline after it misses several check-ins (about five minutes in 9.4, six minutes in 9.5). With an OpAMP policy created in 9.5, an offline collector becomes inactive after one day, which hides it from the default view of the Agents list.
Collector details: Pipeline graph, health, and effective configuration
Starting in 9.5, selecting a collector opens a details page built for collectors, marked with a Collector (OpAMP) badge, instead of the Elastic Agent details page. The 9.5 details page shows:
Pipeline graph. Receivers, processors, connectors, and exporters, and how data flows between them. The graph is built from the effective configuration, so it renders even when the collector is offline. Clicking a component opens its health, configuration, and, with internal telemetry enabled, throughput, error, and queue metrics.
Health. Overall status, uptime, and last error, followed by health per pipeline and per component, so you can see which receiver or exporter is failing.
Effective configuration. The YAML that the collector is running right now, as reported by the collector. Fleet Server redacts values whose keys look like credentials (password, token, key, secret, auth, certificate, passphrase) before storing them, including header lists, like name: Authorization.
Info. identifying and nonidentifying attributes, such as host name, OS, architecture, service name, and version, and the OpAMP capabilities that the collector reports.
Error patterns. Recurring errors from the collector's logs. This view needs internal telemetry enabled.
In 9.4, collectors use the Agent details tab, with an overview panel and a component health panel:
How to remove a collector from Fleet
Starting in 9.5, you can remove active collectors from the Agents list, one at a time or in bulk. The removal is recorded in the Agent activity log, like other Fleet actions. Removing a collector doesn't stop it, and its enrollment token stays valid, so a collector that’s still running reconnects and shows up again. To stop a collector from reporting to Fleet, remove the opamp extension from its configuration and restart it. Collectors that are already inactive can't be removed, but they’re hidden from the default view.
How Fleet Server implements the OpAMP server
One OpAMP endpoint and one agent data model
Fleet Server exposes OpAMP at /v1/opamp next to its existing Elastic Agent APIs. We chose not to create a separate collector registry. Collectors are stored in the same .fleet-agents index as Elastic Agents, with type: OPAMP. This means collectors get Fleet's API key authentication, Kibana spaces, rate limiting, and the Agents API without any extra work. They also show up in the same Agents list in Kibana, which is built on that API. We expect collectors and Elastic Agents to converge over time, and keeping them in one model makes that easier.
How collector auto-enrollment works
The OpAMP spec doesn't define an enrollment step. Fleet Server fills that gap by enrolling a collector the first time that it sees an unknown instance_uid. It validates the enrollment token and then creates the .fleet-agents document with the policy associated with that token. Starting in 9.5, it also places the collector in the token's space, as described in Spaces, below. Also starting in 9.5, a collector that sets the RequestInstanceUid flag is treated as a new enrollment.
How collector check-ins work
Every later message goes through the same bulk check-in path as Elastic Agent check-ins, so updates from thousands of collectors are batched into a small number of Elasticsearch bulk requests. Fleet Server maps these AgentToServer fields onto the agent document:
OpAMP field | Stored in Fleet as |
|---|---|
instance_uid | Agent ID |
agent_description | Identifying and nonidentifying attributes |
health | last_checkin_status, last_checkin_message |
effective_config | Redacted effective configuration |
capabilities | Decoded capability list |
sequence_num | Sequence number, used to detect missed messages |
OpAMP clients can leave out sub-messages that haven't changed since the last report, and the sequence number lets the server notice when it missed one. Fleet Server stores the sequence number with each collector. Starting in 9.5, Fleet Server notices sequence gaps, but only logs them, and sets the ReportFullState flag on every response, so clients always send their complete state, including the effective configuration. In 9.4, the flag isn't set and clients send only what changed.
What we learned building an OpAMP server on opamp-go
One OpAMP flag can make clients skip their polling interval
Setting ReportFullState on every response is the simplest way to keep the server's view of a collector complete, and we tried it to see whether Fleet could tolerate the extra bandwidth. Our daily scale test, 10,000 simulated collectors connected to Fleet Server on Serverless, is passing, but it uses small configurations and only checks that collectors stay online, so it can't show the effect that we describe next.
The spec doesn't say how soon a client should reply to ReportFullState, and it explicitly allows an HTTP client to send its next request immediately after a response, without waiting for the polling interval. The opamp-go client does this. Against a minimal opamp-go server on localhost, one client sent about 3,500 messages per second with the flag set on every response, compared with one message per 30-second heartbeat without it. We haven't yet measured this against Fleet Server, where we expect the OpAMP rate limiter and the client's backoff on HTTP 429 responses to be the main brakes.
We consider this a bug, and we're investigating it in fleet-server#8187. We expect Fleet Server to set ReportFullState only when it needs the full state, on enrollment or when the sequence number shows a gap, so that collectors keep polling at their configured interval. A scale test with realistic configuration sizes and request rate metrics would catch regressions like this. If you build an OpAMP server on opamp-go, treat ReportFullState as "reply now with everything" and set it only when you need it.
Effective configuration needs replace semantics
Fleet Server updates agent documents with partial doc updates, which Elasticsearch merges recursively into the existing document by design. That’s the right behavior for fields that only change or grow. Effective configuration is different: when a pipeline is removed from a collector, the stored configuration must lose it, too, and a merge never removes keys. Fleet Server now updates effective configuration with a Painless script that replaces the whole field.
Teaching Fleet that not every agent is an Elastic Agent
Reusing the .fleet-agents model saved us a lot of work, but every place where Fleet assumed "agent means Elastic Agent" had to learn about collectors. Some examples include:
Spaces. Starting in 9.5, collectors land in the space of their enrollment token. This took changes in both Kibana and Fleet Server. The flyout now waits for the current space before it requests the enrollment token, and Fleet Server copies the token's namespaces to the new collector.
Metrics. Collector metrics are keyed by service.instance.id, which defaults to the host name, so a collector reenrolled on the same host shares that value with the one it replaced. Fleet leaves offline, inactive, and unenrolled collectors out of the metrics query, so live metrics show up only on the active collector.
Agent-only tabs and settings. Diagnostics, Settings, and the logging level control don't apply to collectors and are hidden for them.
Current limitations of collector monitoring in Fleet
Monitoring only. Fleet Server doesn't send remote configuration, connection settings, packages, or commands, so you can't change a collector's configuration from Fleet yet. The full list of differences from the spec is in docs/opamp.md in the fleet-server repository.
Shared enrollment token. All collectors enrolled with a token authenticate with that same token. Elastic Agent exchanges its enrollment token for a per-agent API key. We plan to do the same for OpAMP clients that can accept new credentials through connection settings. The supervisor can, but the extension can't.
HTTP only. WebSocket transport isn't supported yet.
Collector logs. The Logs tab on a collector doesn't return data yet, because collector logs are stored in a different data stream than Elastic Agent logs. Collector logs reach Elasticsearch through internal telemetry, and you can explore them in Discover.
Try OpenTelemetry collector monitoring in Fleet
Open the Agents tab in Fleet, click Add, and then select Collector (OpAMP). To connect a collector you already run, use the flyout to get the enrollment token and instance_uid, and then copy only the opamp extension block into your configuration. For the full documentation, start with the Monitor OpenTelemetry Collectors in Fleet overview, which links to setup, viewing, internal telemetry, and removing collectors. If you run into gaps or have ideas for what Fleet should show about your collectors, let us know in the Elastic community forum or on GitHub.
How helpful was this content?




