Tempo is a multi-tenant distributed tracing backend. It supports multi-tenancy through the use
of a header:
If you’re interested in setting up multi-tenancy, consult the multi-tenant example in the repo. This example uses the following settings to achieve multi-tenancy in Tempo.
Note Multi-tenancy on ingestion is currently only working with GPRC and this may never change. It is strongly recommended to use the OpenTelemetry Collector to support multi-tenancy.
Configure the OTEL Collector to attach the X-Scope-OrgID header on push:
exporters: otlp: headers: x-scope-orgid: foo-bar-baz
Configure the Tempo data source in Grafana to pass the tenant with the same header:
- name: Tempo-Multitenant jsonData: httpHeaderName1: 'X-Scope-OrgID' secureJsonData: httpHeaderValue1: 'foo-bar-baz'
Enable multi-tenancy on Tempo backend, set the following configuration value on all Tempo components:
or from the command line:
This option will force all Tempo components to require the