Create a Tenant
A tenant is an isolated metrics namespace. Each tenant gets its own write endpoint, API token, and series quota. Create one tenant per environment (production, staging, dev) or per team.
Steps
-
Go to Tenants in the sidebar.
-
Click New tenant in the top-right corner.
-
Fill in the optional fields:
Field Description Display name A human-readable label (e.g. production,team-payments). Shown in the portal but not used in API calls.Environment Free-text tag to categorise the tenant (e.g. prod,staging). Optional. -
Click Create tenant.
-
The portal shows the tenant credentials — copy them now:
Credential What it's used for Access key (API token) Value for the Authorization: Bearer <token>headerWrite endpoint URL for remote_writeor OTLP export:::warning Token shown once The API token is only displayed at creation time. If you lose it, rotate the key to generate a new one. :::
-
Click Done. The new tenant appears in the tenants list with status Active.
What to do next
Configure your metrics collector to send data to the new tenant. Both headers are required on every request:
# Prometheus remote_write
remote_write:
- url: <write endpoint>
authorization:
credentials: <api token>
headers:
X-Scope-OrgID: <tenant-id>
# Grafana Alloy
prometheus.remote_write "xscaler" {
endpoint {
url = "<write endpoint>"
authorization {
type = "Bearer"
credentials = "<api token>"
}
headers = { "X-Scope-OrgID" = "<tenant-id>" }
}
}
The tenant ID is shown in the tenants list and on the tenant detail page.