How should multi-tenant work?

Hi all …

We will have logs from 1000s of orgs coming in, and we were assuming that client devices would be setting the X-Scope-OrgID HTTP header, and that this would result in 1000s of separate per-org log streams in the S3 bucket.

Specifically, we’d like to run Loki behind the OpenTelemetry Collector, using the lokiexporter. The exporter has a tenant_id parameter that can set the X-Scope-OrgID HTTP header, but this sets a single static tenant. We’re hoping that the Collector will be passing through headers.

Is this correct, or are we misunderstanding something? Is anyone else running a similar setup?