OpenSearch application performance monitoring with OpenTelemetry

OpenSearch APM, introduced in 3.6, pairs OpenTelemetry instrumentation with service topology and RED metrics on infrastructure you control. This page covers the design choices, setup sequence and limits to confirm before rollout.

On this page

What OpenSearch application performance monitoring does and when teams need it

OpenSearch application performance monitoring (APM) is a feature, introduced in OpenSearch 3.6, that gives teams a service-level view of their applications: which services call which, and how each one is performing. It fits when your engineers can already find individual traces but cannot quickly answer whether a service is healthy, which dependency is failing, or where latency is growing. Because it runs on a self-hosted OpenSearch cluster, it also fits teams that must keep telemetry inside infrastructure they control.

The feature combines two things. The first is service topology, a map of services and the calls between them. The second is Rate, Errors and Duration (RED) metrics for each service and operation: how many requests arrive, how many fail, and how long they take. Telemetry is generated by OpenTelemetry SDKs in your applications and sent through the OpenTelemetry Collector, which receives, processes and exports the data to OpenSearch. OpenTelemetry does not store or visualize anything itself, so the storage and the service views come from OpenSearch.

Before you commit, confirm in the APM documentation which OpenSearch version you will run, which SDK languages your services use, and how your team will name services and operations, since the topology and RED views depend on consistent naming. Plan the Collector deployment as a decision in its own right: an agent next to each workload or a gateway that accepts data from many sources changes how you secure and scale the pipeline.

How telemetry moves from services to OpenSearch APM views

Telemetry starts in your services, where OpenTelemetry SDKs create traces and metrics. The SDKs export to a Collector agent running beside the workloads on each application host, which hands data to a Collector gateway that receives from many sources and forwards it onward. The gateway sits on the far side of the trust boundary, and the OpenSearch cluster stores the data and serves the APM views. Check what crosses that boundary: authentication on the gateway, TLS on each hop, and whether the OpenSearch credentials used by the exporter are scoped to writing telemetry only.

Telemetry path from instrumented services to OpenSearch APM dashboards, with the trust boundary marked.

How APM differs from raw trace analytics

Raw trace analytics answers per-request questions, while APM answers service-level health questions. When you search stored spans for a slow checkout call or a specific trace ID, you are inspecting individual requests. APM on OpenSearch, introduced in OpenSearch 3.6, works one level up. It combines a service topology, which shows which services call which, with Rate, Errors and Duration (RED) metrics for each service and dependency. The topology tells an on-call engineer where a failure sits in the call graph, and the RED metrics tell them whether the error rate or latency of that service has moved from its normal range. Individual traces are still the drill-down once the aggregate view points to a service.

The two views depend on different data decisions, and this is where teams often go wrong. RED metrics and topology are computed from the telemetry that the OpenTelemetry SDKs and Collector send, so they are only accurate if the spans carry consistent service names, span kinds and status codes. Sampling is the sharpest trade-off. If the Collector drops most traces before they reach OpenSearch, error and latency rates can be distorted, and rare failures may disappear from the topology entirely. Confirm with your own tests, using the OpenSearch APM documentation, how the APM views compute their figures from the spans you actually store.

Before you choose retention periods or a sampling policy, write down which views each team needs and how far back they need them. On-call engineers usually need current topology and RED signals for the last hours, plus enough trace detail to debug a recent incident. Service owners often want weeks of trend data for latency and error budgets, which needs metrics retained longer than full span bodies. Ask who will look at each view, at what time range and at what level of detail. Those answers set how much raw span data to keep, which spans to sample, and whether trend data must survive after the traces are deleted. Write them down before the first collector configuration is reviewed.

Which APM configuration fits your environment

Running the OpenTelemetry Collector as an agent places an instance next to each service or host, so applications send telemetry to a local endpoint. The Collector can then add host context and handle short network interruptions close to the source. The cost is that every host carries a Collector to configure, patch and monitor, and configuration drift becomes harder to spot. The Collector is vendor-agnostic and can run in either role, so the choice is about operations, not capability.

  • Configuration sprawl: every agent needs the same pipeline definitions, so use shared configuration management and version it.
  • Local buffering: agents can absorb short outages between the host and the backend, but buffer sizes must be set deliberately.
  • Host context: agents see the machine they run on, which helps when correlating service health with infrastructure.
  • Upgrade effort: each agent is a separate upgrade target across the fleet.
  • Credential placement: agents often hold exporter credentials on every host, which widens the surface to protect.

Check how many hosts you run, who owns their images, and whether your platform team can roll out Collector changes across all of them.

Setting up OpenSearch APM step by step

This sequence takes a team from a planned OpenSearch cluster to a working APM view of one pilot service, with a check at each stage so problems surface before the rollout expands.

  1. Confirm the OpenSearch version and APM availability

    Confirm that the target cluster runs OpenSearch 3.6 or later, since Application Performance Monitoring was introduced in that release. Your platform team checks the version on the cluster and records it in the change ticket, and confirms that the APM features are enabled in the installed distribution. Check the current release line on the OpenSearch releases page, because a version in maintenance receives only bug and security fixes. Done means the cluster version, the target minor version and the owner of upgrades are written down.

  2. Size and place the cluster with dedicated cluster manager nodes

    Decide the node roles before installation. The OpenSearch cluster documentation recommends dedicated cluster manager nodes, replicas on separate nodes and shard allocation awareness across failure domains, so plan those into the layout rather than retrofitting them. Your infrastructure team reviews sizing with the expected trace and metric volume, and confirms where each node sits in your data center or cloud zones. Check that the cluster reports the expected roles per node and that replica shards are allocated to nodes outside the primary's failure domain.

  3. Deploy the Collector with pinned release versions

    Install the OpenTelemetry Collector using a fixed release version rather than a floating tag, so that every agent and gateway runs the same build. Choose the distribution your team needs, verify the release artifacts with the published SHA256 checksums and review the SBOM before deployment. Run one Collector as a gateway and, where needed, agents next to services. Check that the Collector starts cleanly, that its health endpoint responds, and that its logs show the pipeline loaded without configuration errors.

  4. Secure the Collector and the export path

    Before any production data flows, configure how the Collector authenticates. Collector authenticator extensions can check incoming connections on receivers, for example with OIDC, and add credentials to outgoing exporter requests. Apply the Collector configuration best practices, restrict which network paths can reach the receivers, and store exporter credentials in your secrets system. Check by sending a request without credentials and confirming it is rejected, then sending an authorized request and confirming it is accepted.

  5. Instrument one pilot service

    Choose one service with a known traffic pattern and add OpenTelemetry SDK instrumentation for its language. Point the SDK at the Collector, set a stable service name and environment attribute, and deploy the change to a non-critical environment first. Trace APIs and SDKs are stable in most languages, but log SDK maturity varies, so limit the pilot to the signals your language supports well. Check that the Collector receives spans from the service and that the spans carry the service name you set.

  6. Verify service topology and RED metrics

    Open the APM view in OpenSearch Dashboards and confirm that the pilot service appears in the service topology with its upstream and downstream dependencies. Then confirm that Rate, Errors and Duration metrics populate for the service over a period of real requests. Generate known test traffic, including a few failing requests, and check that the error rate and latency change as expected. Done means topology edges and RED panels match the traffic you generated, and any missing dependency is traced back to instrumentation or Collector configuration.

  7. Expand the rollout service by service

    Add the next services in small groups, applying the same instrumentation, service naming and Collector configuration that worked for the pilot. Each addition repeats the topology and RED checks, and the platform team reviews storage growth and cluster health after each group. Keep the Collector versions pinned and plan upgrades as separate, tested changes. Done means each service in the rollout shows in the topology with RED metrics, and cluster health and index growth stay within the limits your sizing review set.

Securing telemetry paths and the APM cluster

Telemetry for application performance monitoring often carries service names, endpoints and error detail that reveal how your systems work. The controls below cover the three places that data travels or rests: the Collector receivers and exporters, the OpenSearch roles that decide who sees service data, and the audit and configuration records that show how the pipeline changed over time.

Authenticate incoming telemetry with OIDC

Collector authenticator extensions can check the identity of clients that send traces, metrics or logs to a receiver, and OIDC is one supported option. Without this, any workload that can reach the receiver port can inject spans into your service map. Check which services must send telemetry, issue each one a credential from your identity provider, and test that a request without a valid token is refused before you point production workloads at the Collector.

Collector configuration

Authenticate exporter requests with oauth2client

The oauth2client extension adds credentials to requests the Collector sends onward, so the Collector can reach an authenticated OpenSearch ingest endpoint without storing a shared password in its configuration. Confirm which token endpoint, client identifier and secret source your team will use, and decide where the secret lives. Rotation of that secret is part of the operating plan, not an afterthought.

Encrypt receiver and exporter connections

Telemetry sent in plaintext can expose tokens, hostnames and request paths to anyone on the network segment. Enable TLS on every receiver and on the exporter connection to OpenSearch, and confirm which certificate authority your services trust. Record which endpoints are plaintext only during a documented test window, and remove that exception before go-live.

Limit service data with OpenSearch roles

The OpenSearch Security plugin provides role-based access control, along with document-level and field-level security and field masking. Use these to decide which teams can read service topology, error rates and span attributes for their own services, and to hide fields such as user identifiers or query text from broader audiences. Test each role with a real user account before granting access to the dashboards.

OpenSearch security docs

Keep audit logs of cluster access

OpenSearch Security can write audit logs that record access to the cluster, which lets you answer who queried service data and who changed roles or index settings. Decide where those logs go, how long they are kept and who may read them, since the audit trail itself must be protected. Confirm that the audit categories you enable match the questions your security team will ask after an incident.

Apply Collector configuration best practices

Store Collector configuration in version control, review every change, and restrict who can deploy it. Avoid placing credentials directly in configuration files, load them from the environment or a secrets manager, and limit the Collector process to the network paths it needs. Pin the Collector release you test and check each component's stability level in its README before you enable it in production.

Config best practices

Limits to confirm in your environment

Which languages have stable OpenTelemetry trace SDKs for my services?

Trace APIs and SDKs are stable in most languages, including C++, .NET, Go, Java, JavaScript, PHP, Python, Ruby and Swift, according to the OpenTelemetry status page. Log SDK maturity varies more, and several languages are still in development, so check logs separately from traces. Confirm the exact status for each language your services use, including the instrumentation libraries your frameworks depend on, in the OpenTelemetry status page and then prove it with a test service that emits real spans before you roll out. Stable SDK status does not guarantee that every framework or library you run is instrumented equally well, so treat coverage gaps as part of the scope to verify.

Are all OpenTelemetry Collector components stable enough for production?

No, core Collector components have mixed stability levels, and each component's README documents its own status. A receiver, processor or exporter you depend on can be at a different maturity level from the one next to it in your pipeline. List every component in your planned configuration, read its stability note in the Collector repository, and decide which ones you will accept in production. Keep any component marked as development or alpha out of the critical path unless you have tested it against your expected load and failure modes. Document the decision so the platform team and the auditors can see why each component was chosen.

Which OpenSearch APM version is available on my cluster?

Application Performance Monitoring was introduced in OpenSearch 3.6, so a cluster on an earlier minor version cannot use it. Check the version your cluster runs, then confirm the APM features in the version's own documentation before you plan the build. OpenSearch versions receive bug fixes and security patches during maintenance but no new features, so a cluster that stays on an older line will not gain APM later. Plan the upgrade path first if you need APM and your cluster is behind. Confirm the feature list with the OpenSearch APM documentation for the release you intend to run.

Does my signal volume and retention fit my OpenSearch cluster sizing?

Trace, metric and log volume drives storage, indexing load and query cost, and it is the number to measure before anything else. Estimate spans per second, the size of each span with its attributes, and how many days you must keep data for incident review and compliance. Then size the cluster for indexing peaks, replica count and retention, not for average traffic. Confirm the result with a load test that mirrors your production shape, and watch disk and heap usage during the test. Sizing for a sample of services and extending it later is far cheaper than discovering the limit during an incident.

Who pays for ongoing Collector and cluster operation after launch?

Your organization pays for the infrastructure that runs the cluster and the Collectors, the storage that holds the data, and the staff time to operate them, while the open-source software itself carries no license fee. The recurring costs are compute, storage growth, upgrades, and on-call effort for pipeline failures. Ask any partner to separate one-time build work from a retainer for upgrades, testing and support, and to state what each covers. A fixed-scope build is typically agreed in writing before work starts, so ask for the scope, deliverables and timelines in writing. DeployOpen does not publish a price list, and a quote follows from that written scope.

How do I secure Collector connections and credentials?

Collector authenticator extensions can check incoming connections on receivers, for example with OIDC, and add credentials to outgoing exporter requests, for example with the oauth2client extension. Decide which receivers accept untrusted traffic, which exporters need tokens, and where those secrets live before you deploy. Follow the Collector configuration best practices and confirm that each extension you use supports your identity provider. Test rejected and expired credentials as part of acceptance, not only the happy path.

Can my team run this without an outside partner?

Yes, a team with Kubernetes or VM operations, OpenTelemetry instrumentation experience and OpenSearch administration skills can run this build in-house, and many do. The work that tends to take longest is verifying language and component coverage across real services, sizing the cluster from measured volume, and wiring access control and retention. Compare that effort against your team's current workload and on-call capacity. If you use a partner, ask them to name the skills they will provide, the artifacts you will receive, and how knowledge transfers to your staff.

How DeployOpen scopes and delivers OpenSearch APM

DeployOpen plans, implements, documents and supports self-hosted OpenSearch application performance monitoring inside your own infrastructure, with OpenTelemetry SDKs and Collector pipelines feeding the service topology and rate, error and duration views. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • We confirm which services, languages and OpenSearch version the written scope covers, including the 3.6 or later APM feature set.
  • We list which applications get SDK instrumentation and which infrastructure telemetry flows through the OpenTelemetry Collector.
  • We agree access control, data retention and tenant boundaries for traces and metrics before any build starts.
  • Scope documents state deliverables and timelines in writing, and a quote follows from that written scope.

How we build

  • We deploy OpenSearch and the Collector in your cloud accounts, data centers or air-gapped networks using your chosen install method.
  • We instrument selected services with OpenTelemetry SDKs and configure Collector agent or gateway pipelines for your topology.
  • We configure SSO, roles and TLS through the OpenSearch Security plugin so APM dashboards follow your access model.
  • We test that service maps, RED metrics and trace data appear correctly, and we record the findings and fixes.

How we hand over

  • You receive architecture notes, configuration files and runbooks covering the OpenSearch cluster and each Collector pipeline.
  • We document instrumentation standards for your teams, including which SDK versions and attributes each service must emit.
  • We walk your platform and security teams through access controls, audit logging and data handling so they can review the setup.
  • Handover includes a checklist of what to confirm with your own team before production traffic is routed to the new stack.

How we support

  • Ongoing support, OpenSearch and Collector upgrades, and continuous testing are available as retainers.
  • We track OpenSearch maintenance windows and Collector release changes so upgrades are planned against your scope.
  • Support covers adding services, tuning Collector processors and reviewing retention as telemetry volume changes.
  • Retainer terms, response expectations and included work are confirmed in writing before the retainer starts.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.