Generated banner for Observability Onboarding
Generated logo for Observability Onboarding

Observability Onboarding

ElasticOfficialCreated by elastic

  • Skill
  • Tool integration
  • Cloud and DevOps
  • Apache-2.0
  • No issues found

From the author

Onboard an application into Elastic Observability with the Elastic Distribution of OpenTelemetry (EDOT): route on language and runtime, detect and replace a classic Elastic APM agent, apply the required OTLP configuration, and then verify with ES|QL that traces, metrics, and logs actually arrive under the expected service name. Use when adding observability to a service, migrating off the classic Elastic APM agent, or debugging why an instrumented service is not showing up in Elastic.
— the description by elastic

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured process for instrumenting applications with the Elastic Distribution of OpenTelemetry (EDOT) or migrating from the classic Elastic APM agent. It covers language-specific setup for Java, Python, .NET, and PHP, ensures correct OTLP configuration, and mandates a verification step using ES|QL to confirm that traces, metrics, and logs are successfully reaching Elasticsearch.

What it does

  • Identifies the application's language and runtime environment.
  • Detects existing classic Elastic APM agents to determine if a migration path is required.
  • Applies standard EDOT configuration, including service naming and OTLP endpoint settings.
  • Provides guidance on removing legacy APM configurations to prevent double-instrumentation.
  • Verifies telemetry arrival in Elasticsearch using ES|QL queries to ensure data integrity.
  • Diagnoses common issues when telemetry is missing or misconfigured.

When to use it

  • When adding observability to a new service using EDOT.
  • When migrating an existing service from the classic Elastic APM agent to EDOT.
  • When troubleshooting an instrumented service that is not reporting data to Elastic.
  • When verifying that telemetry signals (traces, metrics, logs) are correctly associated with a service name.

Advantages

  • Ensures consistent configuration across different language runtimes.
  • Prevents common pitfalls like double-instrumentation or incorrect endpoint usage.
  • Validates success through actual data arrival rather than just configuration changes.
  • Provides clear diagnostic steps for common failure modes.

Usage examples

“Add observability to my Spring Boot service.”
The agent identifies the Java runtime, checks for legacy APM markers, applies the EDOT javaagent configuration, and runs a verification query to confirm telemetry arrival.
“We are moving off the Elastic APM agent to EDOT, we are on .NET.”
The agent guides the removal of legacy NuGet packages and configuration, sets up the EDOT registration, and verifies that only the new distro is reporting.
“I instrumented my Python app but nothing shows up in Elastic.”
The agent skips configuration and immediately runs diagnostic ES|QL queries to check for service name mismatches or exporter connectivity issues.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/elastic/observability-onboarding/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip observability-onboarding.zip -d .agents/skills

Documentation by elastic

Observability Onboarding

Instrument an application with the Elastic Distribution of OpenTelemetry (EDOT) and prove the telemetry arrived. The instrumentation change is only half the job: an application can be configured perfectly and still emit nothing, so this skill ends by querying Elasticsearch for the service's data rather than declaring success from a config diff.

The scope is application instrumentation with the EDOT SDKs. Deploying an EDOT Collector, collecting logs from files or infrastructure, and onboarding data through Elastic Agent, Fleet, or integration packages are separate ingest paths that this skill does not cover.

Once telemetry is flowing, use the observability-sre-triage skill to assess service health, observability-k8s-investigation for Kubernetes-layer failures, observability-service-reliability to define SLOs and alerts on the new signals, and observability-llm-obs for GenAI and agentic workloads.

<!-- begin-partial: preamble -->

Environment Configuration

This skill executes Elasticsearch operations through the elastic CLI. If the elastic CLI is not installed, tell the user what it is needed for. Do not guess credentials, call the HTTP API directly, or attempt other workarounds.

This skill references operations in HTTP-shorthand form (e.g., GET /, GET /_cat/indices, GET /{index}/_mapping, GET /{index}/_settings/index.mode, POST /_query). The Operations table at the end of this document maps each shorthand to the equivalent elastic CLI command — always use the CLI rather than calling the HTTP API directly.

<!-- end-partial: preamble -->

Analysis without cluster access

The CLI check above gates querying the cluster — it does not gate analysis. When the user has already supplied the evidence in their question (metric values, counts, status reasons, log lines, alert payloads, configuration), reason from that evidence and deliver the conclusion.

When you genuinely do need data the user has not provided, still say what you would check and how — name the specific query, index, and field that would settle the question — and then ask for CLI setup. An answer that names the check is useful without a cluster; one that only asks for setup is not.

Only the verification step in this skill talks to Elasticsearch; it runs through POST /_query. Everything else edits application code and configuration in the user's workspace.

Jobs to be done

  • Decide whether a service needs fresh instrumentation or a migration off the classic Elastic APM agent

  • Apply the EDOT configuration for the service's language and runtime

  • Point telemetry at the correct OTLP destination and reject APM Server URLs

  • Verify that traces, metrics, and logs land in Elasticsearch under the expected service.name

  • Diagnose an instrumented service that is reporting nothing, or reporting from the wrong agent

Output discipline

Applies to every response produced under this skill.

  • Make the edit. When the language, the current agent, and the destination are known, apply the change. Do not narrate a plan and ask for approval on each file; ask only when a decision genuinely cannot be inferred.

  • Do not dump documentation. Link the relevant page and state the two or three rules that apply to this service. Pasting a whole setup guide into the reply is a defect.

  • Verify before reporting success. "Configured correctly" is not the finding; "telemetry is arriving" is. If verification returns no rows, say the service is not reporting and give the most likely cause.

  • Do not speculate past the evidence. If the verification query is empty, that is one fact with several possible causes — name the likeliest and how to distinguish it, rather than asserting one.

  • End on the result. No trailing offers such as "want me to set up dashboards next?". Follow-up work belongs in a recommendations list, phrased as a recommendation.

Process: route the request

  1. Identify the language and runtime. Read the project's dependency manifest — pom.xml or build.gradle, requirements.txt or pyproject.toml, *.csproj, composer.json. The decision: which language reference to open. Also note how the process starts (a Dockerfile ENTRYPOINT, a Kubernetes pod spec, a systemd unit), because that is where the agent attaches and where the environment variables must be set.

    RuntimeReferenceHow EDOT attaches
    Javareferences/java.md-javaagent: flag or JAVA_TOOL_OPTIONS
    Pythonreferences/python.mdopentelemetry-instrument entrypoint wrapper
    .NETreferences/dotnet.mdbuilder.AddElasticOpenTelemetry() in startup
    PHPreferences/php.mdnative extension via OS package, then full process restart

    For a language not listed, follow the same shape — the required configuration and the following verification step are language-independent — and use the upstream EDOT SDK documentation for the attach mechanism.

  2. Detect a classic Elastic APM agent. The decision: instrument path or migrate path. Each language reference lists the markers; the common ones are ELASTIC_APM_* environment variables and a language-specific Elastic APM package. If any marker is present, take the migrate path — do not layer EDOT on top.

  3. Resolve the telemetry destination. The decision: which URL goes in OTEL_EXPORTER_OTLP_ENDPOINT. Two valid answers, and one common wrong one:

    • The Elastic managed OTLP endpoint for the deployment or Serverless project. Correct default.

    • An EDOT Collector the user already runs, when telemetry must be enriched, sampled, or fanned out before it reaches Elastic.

    • Never an APM Server URL. If the candidate contains apm-server, ends in port 8200, or has an /intake/v2/events path, it is the classic ingest endpoint and EDOT cannot use it. On the migrate path this is the single most common mistake — the old ELASTIC_APM_SERVER_URL value must not be carried over.

  4. Apply the shared configuration below, then the language reference. The shared rules are the same for every runtime; the reference covers only what is language-specific.

  5. Verify. Do not report success from the configuration alone — run the verification process.

Required configuration

Identical across every EDOT SDK. Set exactly three environment variables:

VariableValue
OTEL_SERVICE_NAMEThe service's name. This becomes service.name in Elasticsearch and is how every other Observability skill finds it.
OTEL_EXPORTER_OTLP_ENDPOINTThe managed OTLP endpoint or EDOT Collector URL resolved in step 3.
OTEL_EXPORTER_OTLP_HEADERSThe credential, in Authorization=ApiKey <key> or Authorization=Bearer <token> form.

Two rules that hold for every language:

  • Do not set OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER, or OTEL_LOGS_EXPORTER. The defaults are already correct. Setting them is the usual reason a service reports traces but no metrics or logs.

  • Never run a classic Elastic APM agent and EDOT together on the same process. They double-instrument and produce inconsistent traces. Removal and replacement belong in the same change.

Process: verify telemetry arrives

Run this after every instrument or migrate change, and as the entry point when a user reports that an instrumented service is missing. Give the pipeline a minute or two after the deployment restarts before concluding anything.

  1. Confirm documents are landing for the service. Query POST /_query, scoping to the service name that was set in OTEL_SERVICE_NAME. The decision: is anything arriving at all, and across which signals.

    FROM traces-*,metrics-*,logs-* METADATA _index
    | WHERE @timestamp > NOW() - 15 minutes AND service.name == "<service>"
    | STATS docs = COUNT(*), last_seen = MAX(@timestamp) BY _index
    | SORT docs DESC
    | LIMIT 20

    A healthy result has rows from a traces data stream, a metrics data stream, and a logs data stream, with last_seen inside the last minute or two. Missing signals are diagnostic, not cosmetic: traces only, with no metrics or logs, usually means an OTEL_*_EXPORTER variable was set.

  2. If nothing came back, find out what name the service is reporting under. An empty result is ambiguous between "no telemetry at all" and "telemetry arriving under a different name" — a typo in OTEL_SERVICE_NAME, or the SDK default of unknown_service. Drop the service filter and look at what is actually arriving.

    FROM traces-*,metrics-*,logs-*
    | WHERE @timestamp > NOW() - 15 minutes
    | STATS docs = COUNT(*), last_seen = MAX(@timestamp) BY service.name
    | SORT docs DESC
    | LIMIT 25

    The decision: if the service appears under an unexpected name, fix OTEL_SERVICE_NAME. If it does not appear at all, the exporter is not reaching the destination — go back to step 3 of the routing process and re-check the endpoint and credential.

  3. Confirm EDOT is the reporter, not something else. This is what distinguishes a correct migration from a half-finished one, and vanilla OpenTelemetry from EDOT.

    FROM traces-*
    | WHERE @timestamp > NOW() - 15 minutes AND service.name == "<service>"
    | STATS spans = COUNT(*) BY telemetry.sdk.language, telemetry.sdk.name, telemetry.distro.name, telemetry.distro.version
    | SORT spans DESC
    | LIMIT 10

    telemetry.distro.name is elastic when an EDOT SDK is reporting. A null distro with telemetry.sdk.name == "opentelemetry" means the application is on the upstream OpenTelemetry SDK rather than EDOT. Two rows for one service — one with the Elastic distro and one without, or two different telemetry.sdk.language values — means more than one agent is attached, or an old deployment is still running.

  4. Diagnose from the shape of the result.

    Verification resultMost likely cause
    No rows for the service, and the name is absent everywhereExporter never reached the destination — wrong endpoint or bad credential
    Service appears under a different nameOTEL_SERVICE_NAME unset or misspelled; SDK fell back to its default
    Traces only, no metrics or logsAn OTEL_*_EXPORTER variable was set and overrode the default
    Rows present but last_seen is staleThe process exited, or the deployment was rolled back
    Two distro values for one serviceClassic agent and EDOT both attached, or an old replica still running

    If the field names above are absent from the mapping, confirm what is available with GET /<index>/_mapping before concluding the telemetry is wrong.

Examples

"Add observability to my Spring Boot service" — read pom.xml to confirm Java, check for co.elastic.apm and ELASTIC_APM_* markers, and finding none, take the instrument path in references/java.md. Add the -javaagent flag to the container entrypoint, set the three environment variables against the managed OTLP endpoint, then run the verification query and report which signals arrived.

"We're moving off the Elastic APM agent to EDOT, we're on .NET" — this is the migrate path. Remove the Elastic.Apm.* packages, the AddAllElasticApm() call, and the ElasticApm block from appsettings.json in the same change that adds Elastic.OpenTelemetry and builder.AddElasticOpenTelemetry(). Translate the configuration rather than copying it — in particular do not reuse ELASTIC_APM_SERVER_URLS as the OTLP endpoint. Verify with step 3 and confirm exactly one distro is reporting.

"I instrumented my Python app but nothing shows up in Elastic" — start at the verification process, not at the configuration. Run step 1; if it is empty, run step 2 to see whether the service is reporting under a different name. If the service is absent entirely, the two candidates are an unwrapped entrypoint (opentelemetry-instrument missing) and an endpoint still pointing at APM Server. Check the entrypoint first — it is the more common of the two.

"Our service sends traces but we have no logs or metrics" — this is the OTEL_*_EXPORTER signature. Confirm it with step 1, which will show a traces data stream and nothing else, then remove the OTEL_TRACES_EXPORTER, OTEL_METRICS_EXPORTER, or OTEL_LOGS_EXPORTER variable from the deployment and re-verify.

Guidelines

  • Read the setup or migration guide for the language before editing. The per-language references link the authoritative page; the attach mechanism differs enough between runtimes that pattern-matching from another language produces broken configurations.

  • Removal and replacement go in one change. A window where both the classic agent and EDOT are attached produces double-instrumented traces that are worse than either alone.

  • Never carry the classic server URL forward. ELASTIC_APM_SERVER_URL points at APM Server; OTEL_EXPORTER_OTLP_ENDPOINT must point at the managed OTLP endpoint or an EDOT Collector.

  • Set the three variables and no more. Additional OTEL_* tuning is occasionally justified, but the exporter variables specifically should be left at their defaults.

  • Treat an empty verification result as unknown, not as failure of a specific component. Distinguish the causes with step 2 before recommending a fix.

  • Never place a credential in the skill's output or in a committed file. OTEL_EXPORTER_OTLP_HEADERS belongs in the deployment's secret mechanism.

  • Attribution: the per-language EDOT guidance consolidated here originates with the apm-agent-devs team.

Operations

HTTP API (shorthand)elastic CLI command
GET /elastic es info
POST /_queryelastic es esql query --format tsv --query '<esql>'
GET /<index>/_mappingelastic es indices get-mapping --index '<index>'

Files

LICENSE

                                 Apache License
                           Version 2.0, January 2004
                        http://www.apache.org/licenses/

   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

   1. Definitions.

      "License" shall mean the terms and conditions for use, reproduction,
      and distribution as defined by Sections 1 through 9 of this document.

      "Licensor" shall mean the copyright owner or entity authorized by
      the copyright owner that is granting the License.

      "Legal Entity" shall mean the union of the acting entity and all
      other entities that control, are controlled by, or are under common
      control with that entity. For the purposes of this definition,
      "control" means (i) the power, direct or indirect, to cause the
      direction or management of such entity, whether by contract or
      otherwise, or (ii) ownership of fifty percent (50%) or more of the
      outstanding shares, or (iii) beneficial ownership of such entity.

      "You" (or "Your") shall mean an individual or Legal Entity
      exercising permissions granted by this License.

      "Source" form shall mean the preferred form for making modifications,
      including but not limited to software source code, documentation
      source, and configuration files.

      "Object" form shall mean any form resulting from mechanical
      transformation or translation of a Source form, including but
      not limited to compiled object code, generated documentation,
      and conversions to other media types.

      "Work" shall mean the work of authorship, whether in Source or
      Object form, made available under the License, as indicated by a
      copyright notice that is included in or attached to the work
      (an example is provided in the Appendix below).

      "Derivative Works" shall mean any work, whether in Source or Object
      form, that is based on (or derived from) the Work and for which the
      editorial revisions, annotations, elaborations, or other modifications
      represent, as a whole, an original work of authorship. For the purposes
      of this License, Derivative Works shall not include works that remain
      separable from, or merely link (or bind by name) to the interfaces of,
      the Work and Derivative Works thereof.

      "Contribution" shall mean any work of authorship, including
      the original version of the Work and any modifications or additions
      to that Work or Derivative Works thereof, that is intentionally
      submitted to Licensor for inclusion in the Work by the copyright owner
      or by an individual or Legal Entity authorized to submit on behalf of
      the copyright owner. For the purposes of this definition, "submitted"
      means any form of electronic, verbal, or written communication sent
      to the Licensor or its representatives, including but not limited to
      communication on electronic mailing lists, source code control systems,
      and issue tracking systems that are managed by, or on behalf of, the
      Licensor for the purpose of discussing and improving the Work, but
      excluding communication that is conspicuously marked or otherwise
      designated in writing by the copyright owner as "Not a Contribution."

      "Contributor" shall mean Licensor and any individual or Legal Entity
      on behalf of whom a Contribution has been received by Licensor and
      subsequently incorporated within the Work.

   2. Grant of Copyright License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      copyright license to reproduce, prepare Derivative Works of,
      publicly display, publicly perform, sublicense, and distribute the
      Work and such Derivative Works in Source or Object form.

   3. Grant of Patent License. Subject to the terms and conditions of
      this License, each Contributor hereby grants to You a perpetual,
      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
      (except as stated in this section) patent license to make, have made,
      use, offer to sell, sell, import, and otherwise transfer the Work,
      where such license applies only to those patent claims licensable
      by such Contributor that are necessarily infringed by their
      Contribution(s) alone or by combination of their Contribution(s)
      with the Work to which such Contribution(s) was submitted. If You
      institute patent litigation against any entity (including a
      cross-claim or counterclaim in a lawsuit) alleging that the Work
      or a Contribution incorporated within the Work constitutes direct
      or contributory patent infringement, then any patent licenses
      granted to You under this License for that Work shall terminate
      as of the date such litigation is filed.

   4. Redistribution. You may reproduce and distribute copies of the
      Work or Derivative Works thereof in any medium, with or without
      modifications, and in Source or Object form, provided that You
      meet the following conditions:

      (a) You must give any other recipients of the Work or
          Derivative Works a copy of this License; and

      (b) You must cause any modified files to carry prominent notices
          stating that You changed the files; and

      (c) You must retain, in the Source form of any Derivative Works
          that You distribute, all copyright, patent, trademark, and
          attribution notices from the Source form of the Work,
          excluding those notices that do not pertain to any part of
          the Derivative Works; and

      (d) If the Work includes a "NOTICE" text file as part of its
          distribution, then any Derivative Works that You distribute must
          include a readable copy of the attribution notices contained
          within such NOTICE file, excluding those notices that do not
          pertain to any part of the Derivative Works, in at least one
          of the following places: within a NOTICE text file distributed
          as part of the Derivative Works; within the Source form or
          documentation, if provided along with the Derivative Works; or,
          within a display generated by the Derivative Works, if and
          wherever such third-party notices normally appear. The contents
          of the NOTICE file are for informational purposes only and
          do not modify the License. You may add Your own attribution
          notices within Derivative Works that You distribute, alongside
          or as an addendum to the NOTICE text from the Work, provided
          that such additional attribution notices cannot be construed
          as modifying the License.

      You may add Your own copyright statement to Your modifications and
      may provide additional or different license terms and conditions
      for use, reproduction, or distribution of Your modifications, or
      for any such Derivative Works as a whole, provided Your use,
      reproduction, and distribution of the Work otherwise complies with
      the conditions stated in this License.

   5. Submission of Contributions. Unless You explicitly state otherwise,
      any Contribution intentionally submitted for inclusion in the Work
      by You to the Licensor shall be under the terms and conditions of
      this License, without any additional terms or conditions.
      Notwithstanding the above, nothing herein shall supersede or modify
      the terms of any separate license agreement you may have executed
      with Licensor regarding such Contributions.

   6. Trademarks. This License does not grant permission to use the trade
      names, trademarks, service marks, or product names of the Licensor,
      except as required for reasonable and customary use in describing the
      origin of the Work and reproducing the content of the NOTICE file.

   7. Disclaimer of Warranty. Unless required by applicable law or
      agreed to in writing, Licensor provides the Work (and each
      Contributor provides its Contributions) on an "AS IS" BASIS,
      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
      implied, including, without limitation, any warranties or conditions
      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
      PARTICULAR PURPOSE. You are solely responsible for determining the
      appropriateness of using or redistributing the Work and assume any
      risks associated with Your exercise of permissions under this License.

   8. Limitation of Liability. In no event and under no legal theory,
      whether in tort (including negligence), contract, or otherwise,
      unless required by applicable law (such as deliberate and grossly
      negligent acts) or agreed to in writing, shall any Contributor be
      liable to You for damages, including any direct, indirect, special,
      incidental, or consequential damages of any character arising as a
      result of this License or out of the use or inability to use the
      Work (including but not limited to damages for loss of goodwill,
      work stoppage, computer failure or malfunction, or any and all
      other commercial damages or losses), even if such Contributor
      has been advised of the possibility of such damages.

   9. Accepting Warranty or Additional Liability. While redistributing
      the Work or Derivative Works thereof, You may choose to offer,
      and charge a fee for, acceptance of support, warranty, indemnity,
      or other liability obligations and/or rights consistent with this
      License. However, in accepting such obligations, You may act only
      on Your own behalf and on Your sole responsibility, not on behalf
      of any other Contributor, and only if You agree to indemnify,
      defend, and hold each Contributor harmless for any liability
      incurred by, or claims asserted against, such Contributor by reason
      of your accepting any such warranty or additional liability.

   END OF TERMS AND CONDITIONS

   APPENDIX: How to apply the Apache License to your work.

      To apply the Apache License to your work, attach the following
      boilerplate notice, with the fields enclosed by brackets "[]"
      replaced with your own identifying information. (Don't include
      the brackets!)  The text should be enclosed in the appropriate
      comment syntax for the file format. We also recommend that a
      file or class name and description of purpose be included on the
      same "printed page" as the copyright notice for easier
      identification within third-party archives.

   Copyright 2026 Elasticsearch BV

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs Python

The author says: Requires the `elastic` CLI (>= 0.2) with an Elasticsearch context for the verification step, and an OTLP destination reachable from the application — either the Elastic managed OTLP endpoint or an EDOT Collector. ES|QL verification requires Elasticsearch 8.11 or later. Covers Java, Python, .NET, and PHP runtimes.

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
elastic
Publisher
Elastic (Official)
Source
elastic/agent-skills · skills/observability/onboarding · commit 09d879d
Licence
Apache License 2.0 (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Also distributed in
elastic/agent-skills

AutoGineer is not affiliated with or endorsed by elastic or Elastic.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download observability-onboarding.zip