Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.x](backport #6315) [otel] add loadbalancing exporter component #6467

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jan 2, 2025

What does this PR do?

Adds the Otel loadbalancing exporter to the elastic-agent.

Why is it important?

It gives the ability to route logs, metrics or traces to different OTLP endpoints depending on the configured routing_key . This feature can be helpful when distributing the processing load among different collectors. For example, current APM OTLP data is directly processed with the lsminterval, elastictrace and signaltometrics components, but all those components could be moved from the collection/edge collectors to a set of collector that only handle data transformations. One of the main benefits of the latest approach is the separation of concerns, processing collectors would be part of another resource entity that would be managed independetly.

Sample configuration that routes traces based on their service.name key:

      exporters:
        loadbalancing/traces:
          routing_key: "service"
          protocol:
            otlp:
          resolver:
            # use k8s service resolver, if collector runs in kubernetes environment
            k8s:
              service: lb-svc.kube-public

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • I have added an integration test or an E2E test

Disruptive User Impact

How to test this PR locally

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

This is an automatic backport of pull request #6315 done by [Mergify](https://mergify.com).

* feat: add loadbalancing Otel exporter

* chore: add fragments changelog file

---------

Co-authored-by: Andrzej Stencel <[email protected]>
(cherry picked from commit dbfd447)
@mergify mergify bot added the backport label Jan 2, 2025
@mergify mergify bot requested a review from a team as a code owner January 2, 2025 12:07
@mergify mergify bot requested review from blakerouse and andrzej-stencel and removed request for a team January 2, 2025 12:07
@michalpristas michalpristas enabled auto-merge (squash) January 2, 2025 12:16
@michalpristas michalpristas merged commit 8275c34 into 8.x Jan 2, 2025
14 checks passed
@michalpristas michalpristas deleted the mergify/bp/8.x/pr-6315 branch January 2, 2025 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants