Skip to content

Add support for configuring mutliple OTel pipelines #1167

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dhurley
Copy link
Collaborator

@dhurley dhurley commented Jul 15, 2025

Proposed changes

  • Allow multiple pipelines to be configured
  • Add default metrics & log pipelines if a command or auxiliary command server are configured

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING document
  • I have run make install-tools and have attached any dependency changes to this pull request
  • If applicable, I have added tests that prove my fix is effective or that my feature works
  • If applicable, I have checked that any relevant tests pass after adding my changes
  • If applicable, I have updated any relevant documentation (README.md)
  • If applicable, I have tested my cross-platform changes on Ubuntu 22, Redhat 8, SUSE 15 and FreeBSD 13

@dhurley dhurley self-assigned this Jul 15, 2025
@dhurley dhurley requested a review from a team as a code owner July 15, 2025 14:44
@dhurley dhurley added the v3.x Issues and Pull Requests related to the major version v3 label Jul 15, 2025
@github-actions github-actions bot added the chore Pull requests for routine tasks label Jul 15, 2025
@@ -59,7 +59,7 @@ var (
initMutex = &sync.Mutex{}
)

// NewCollector is the constructor for the Collector plugin.
// New is the constructor for the Collector plugin.
func New(conf *config.Config) (*Collector, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this NewCollector instead

@@ -1,10 +1,11 @@
receivers:
{{- if ne .Receivers.ContainerMetrics nil }}
{{- with .Receivers.ContainerMetrics }}
Copy link
Contributor

Choose a reason for hiding this comment

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

should this change be done everywhere ?

defaultCommandServer = config.AuxiliaryCommand
}

if _, ok := collector.Exporters.OtlpExporters[DefaultExporter]; !ok && defaultCommandServer != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should these checks be done for addDefaultProcessors & addDefaultPipelines

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks v3.x Issues and Pull Requests related to the major version v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants