Skip to content

docs(otel): add contrib collector to self-managed Elastic guide#7032

Open
alexandra5000 wants to merge 7 commits into
elastic:mainfrom
alexandra5000:upstream-collector-tutorial
Open

docs(otel): add contrib collector to self-managed Elastic guide#7032
alexandra5000 wants to merge 7 commits into
elastic:mainfrom
alexandra5000:upstream-collector-tutorial

Conversation

@alexandra5000

@alexandra5000 alexandra5000 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Summary

Closes #6972

Adds a how-to guide for forwarding telemetry from an upstream contrib OpenTelemetry Collector to a self-managed Elastic Stack using an EDOT Collector gateway:

contrib otelcol-contrib → EDOT Collector (gateway mode) → Elasticsearch

Generative AI disclosure

Did you use a generative AI (GenAI) tool to assist in creating this contribution?

  • Yes
  • No

If you answered "Yes" to the previous question, please specify the tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.).
Tool(s) and model(s) used: Claude Opus 4.8

@github-actions

Copy link
Copy Markdown
Contributor

Elastic Docs AI PR menu

Check the box to run an AI review for this pull request.

  • Review docs changes (docs-review). Status: not started.

Powered by GitHub Agentic Workflows and docs-actions. For more information, reach out to the docs team.

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

✅ Elastic Docs Style Checker (Vale)

No issues found on modified lines!


The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale.

export ELASTIC_API_KEY=your-encoded-api-key
```

Then create `gateway.yml`:

@alexandra5000 alexandra5000 Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I based the gateway.yml on: elastic-agent/internal/edot/samples/linux/gateway.yml

Removes the "Deploy on k8s" section from the bare-metal guide and
replaces it with a Next steps link to the upcoming kubernetes.md page.
Keeps the bare-metal guide self-contained so it can merge independently.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
alexandra5000 and others added 2 commits June 23, 2026 10:07
Comment on lines +89 to +95
batch:
send_batch_size: 1000
timeout: 1s
send_batch_max_size: 1500
batch/metrics:
send_batch_max_size: 0
timeout: 1s

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexandra5000 alexandra5000 Jun 23, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @andrzej-stencel, that's a good reason to get rid of it. Could you drop the replacement config here? I want to make sure we recommend the right ES exporter batching settings, and I'm not confident enough in the exact parameter names to write it without your confirmation.

Another thing to take into consideration is that with this change we'll diverge from the elastic-agent/internal/edot/samples/linux/gateway.yml sample - but I'm guessing that will be updated eventually? In such a case I think it's ok to diverge, even if it's not great to have docs say something different from what you get from the actual EDOT repo...

@alexandra5000 alexandra5000 requested a review from swiatekm June 23, 2026 09:56
- id: edot-collector
---

# Send data from a contrib OpenTelemetry Collector [upstream-collector-self-managed]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Contrib specifically? OpenTelemetry only has several distros: https://opentelemetry.io/docs/collector/distributions/

I would frame it just OpenTelemetry Collector (i.e. contrib) to make it more generic and also cover for the cases where users build their own distros using ocb. We can then say sth like "for the shake of this example we will be using contrib for simplicity".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add E2E tutorial: otelcol-contrib → EDOT Collector (inside Elastic Agent) → Elasticsearch with OTel native mode

3 participants