Skip to main content
Monitoring & Collection/Monitoring Misc

InjectTenantFilter

Inject the tenant label filter into a PromQL query to enforce data isolation

POST/api/v1/monitoring/isolation/inject

Operation ID

InjectTenantFilter

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Body Fields

  • tenantId
    StringRequired

    Tenant ID whose label will be injected

    Example: tenant-001-xyz

  • query
    StringRequired

    PromQL query to inject the tenant filter into

    Example: cpu_usage_percent{job="node"}

Responses

200 OK
200 OK

On success, this API returns the following response structure.

  • filteredQuery
    String

    The query with the tenant label filter injected

    Example: cpu_usage_percent{job="node",tenant_id="tenant-001"}