|
57 | 57 | // Use the Cortex chunks storage engine by default, while giving the ability |
58 | 58 | // to switch to blocks storage. |
59 | 59 | storage_engine: 'chunks', // Available options are 'chunks' or 'blocks' |
60 | | - blocks_storage_backend: 'gcs', |
| 60 | + blocks_storage_backend: 'gcs', // Available options are 'gcs', 's3', 'azure' |
61 | 61 | blocks_storage_bucket_name: error 'must specify blocks storage bucket name', |
62 | 62 | blocks_storage_s3_endpoint: 's3.dualstack.us-east-1.amazonaws.com', |
| 63 | + blocks_storage_azure_account_name: if $._config.blocks_storage_backend == 'azure' then error 'must specify azure account name' else '', |
| 64 | + blocks_storage_azure_account_key: if $._config.blocks_storage_backend == 'azure' then error 'must specify azure account key' else '', |
63 | 65 |
|
64 | 66 | // Secondary storage engine is only used for querying. |
65 | 67 | querier_second_storage_engine: null, |
|
169 | 171 | 'experimental.blocks-storage.s3.bucket-name': $._config.blocks_storage_bucket_name, |
170 | 172 | 'experimental.blocks-storage.s3.endpoint': $._config.blocks_storage_s3_endpoint, |
171 | 173 | }, |
| 174 | + azureBlocksStorageConfig:: $._config.genericBlocksStorageConfig { |
| 175 | + 'experimental.blocks-storage.backend': 'azure', |
| 176 | + 'experimental.blocks-storage.azure.container-name': $._config.blocks_storage_bucket_name, |
| 177 | + 'experimental.blocks-storage.azure.account-name': $._config.blocks_storage_account_name, |
| 178 | + 'experimental.blocks-storage.azure.account-key': $._config.blocks_storage_account_key, |
| 179 | + }, |
172 | 180 | // Blocks storage configuration, used only when 'blocks' storage |
173 | 181 | // engine is explicitly enabled. |
174 | 182 | blocksStorageConfig: ( |
175 | 183 | if $._config.storage_engine == 'blocks' || $._config.querier_second_storage_engine == 'blocks' then ( |
176 | 184 | if $._config.blocks_storage_backend == 'gcs' then $._config.gcsBlocksStorageConfig |
177 | 185 | else if $._config.blocks_storage_backend == 's3' then $._config.s3BlocksStorageConfig |
| 186 | + else if $._config.blocks_storage_backend == 'azure' then $._config.azureBlocksStorageConfig |
178 | 187 | else $._config.genericBlocksStorageConfig |
179 | 188 | ) else {} |
180 | 189 | ), |
|
0 commit comments