Skip to content

[connector/routing] Dynamic routing config from discovery #40189

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
Amoolaa opened this issue May 21, 2025 · 5 comments
Open

[connector/routing] Dynamic routing config from discovery #40189

Amoolaa opened this issue May 21, 2025 · 5 comments
Labels
connector/routing enhancement New feature or request question Further information is requested

Comments

@Amoolaa
Copy link

Amoolaa commented May 21, 2025

Component(s)

connector/routing

Is your feature request related to a problem? Please describe.

I have a multi-tenanted kubernetes platform where I wish to send telemetry to different backend tenants/destinations based on the namespace, annotations used in deployments on the cluster. I can't think of a way to do this dynamically on the collector, such that a new pod comes up and it's dynamically included as part of the routing table.

Describe the solution you'd like

Ability to discover routing configs and apply them dynamically. This would still require being able to dynamically create exporters, but this is the critical part for my use case

Describe alternatives you've considered

Writing a basic controller that watches namespaces/whatever resource I'm interested in that patches the collector configMap with new routing configs/exporters and hot-reloads config from sidecar.

Additional context

No response

@Amoolaa Amoolaa added enhancement New feature or request needs triage New item requiring triage labels May 21, 2025
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@Frapschen
Copy link
Contributor

I have a few questions regarding your scenario. Is your backend static, or does it also involve dynamic elements? Could you please provide more detailed examples to better demonstrate your case?

@Frapschen Frapschen added question Further information is requested and removed needs triage New item requiring triage labels May 22, 2025
@Amoolaa
Copy link
Author

Amoolaa commented May 22, 2025

The backend is Loki/Mimir/Tempo (so relies on X-Scope-OrgId header for tenancy) or another collector with a URL that is dynamic to the namespace it's deployed to.

It's one of a few other use cases I've been thinking about - such as the ability to ingest cloudwatch logs via kinesis and fan out to different tenancies based on the AWS account.

@Frapschen
Copy link
Contributor

if the backend is also dynamic, I believe it a very complex case.

@Amoolaa
Copy link
Author

Amoolaa commented May 23, 2025

I'm happy to consider other solutions outside the collector (such as patch on event + hot-reload I've mentioned above) - just need to know if there is appetite to have something native to the collector or if there is a better way to do it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector/routing enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants