docs/proposals/user-overrides-api.md
This proposal outlines the design for a new API endpoint that will allow users to modify their current limits in Cortex. Currently, overrides can only be changed by administrators modifying the runtime configuration file and waiting for it to be reloaded.
Currently, when users need limit adjustments, they must:
This manual process is time-consuming, error-prone, and doesn't scale well with a large number of users. By offering a self-service API, users can adjust their own limits within predefined boundaries, reducing the administrative overhead and improving the user experience.
Returns the current overrides configuration for a specific tenant.
Response format:
{
"ingestion_rate": 10000,
"ingestion_burst_size": 20000,
"max_global_series_per_user": 1000000,
"max_global_series_per_metric": 200000,
...
}
Updates overrides for a specific tenant. The request body should contain only the overrides that need to be updated.
Request body:
{
"ingestion_rate": 10000,
"max_series_per_metric": 100000
}
Removes tenant-specific overrides, reverting to default overrides.
The API will be integrated into the cortex-overrides component to:
Security:
Error Handling:
shard_size should only be modified by the admin.