|  | 
| 253 | 253 |     }, | 
| 254 | 254 | 
 | 
| 255 | 255 |     ruler_enabled: false, | 
| 256 |  | -    ruler_client_type: error 'you must specify a storage backend type for the ruler (azure, configdb, gcs, s3, local)', | 
| 257 |  | -    // TODO: Generic client generating functions would be nice. | 
| 258 |  | -    ruler_s3_bucket_name: $._config.s3_bucket_name, | 
|  | 256 | +    ruler_client_type: error 'you must specify a storage backend type for the ruler (azure, gcs, s3, local)', | 
|  | 257 | +    ruler_s3_bucket_name: error 'you must specify the ruler S3 bucket name', | 
| 259 | 258 |     ruler_gcs_bucket_name: error 'must specify a GCS bucket name', | 
| 260 | 259 | 
 | 
| 261 | 260 |     rulerClientConfig: | 
| 262 | 261 |       { | 
| 263 | 262 |         'ruler-storage.backend': $._config.ruler_client_type, | 
| 264 | 263 |       } + | 
| 265 | 264 |       { | 
| 266 |  | -        configdb: { | 
| 267 |  | -          configs_api_url: 'config.%s.svc.cluster.local' % $._config.namespace, | 
| 268 |  | -        }, | 
| 269 | 265 |         gcs: { | 
| 270 | 266 |           'ruler-storage.gcs.bucket-name': $._config.ruler_gcs_bucket_name, | 
| 271 | 267 |         }, | 
|  | 
| 284 | 280 |       fallback_config: {}, | 
| 285 | 281 |     }, | 
| 286 | 282 | 
 | 
| 287 |  | -    alertmanager_client_type: error 'you must specify a storage backend type for the alertmanager (azure, configdb, gcs, s3, local)', | 
| 288 |  | -    alertmanager_s3_bucket_name: $._config.s3_bucket_name, | 
|  | 283 | +    alertmanager_client_type: error 'you must specify a storage backend type for the alertmanager (azure, gcs, s3, local)', | 
|  | 284 | +    alertmanager_s3_bucket_name: error 'you must specify the alertmanager S3 bucket name', | 
| 289 | 285 |     alertmanager_gcs_bucket_name: error 'must specify a GCS bucket name', | 
| 290 | 286 | 
 | 
| 291 | 287 |     alertmanagerStorageClientConfig: | 
| 292 | 288 |       { | 
| 293 |  | -        'alertmanager.storage.type': $._config.alertmanager_client_type, | 
|  | 289 | +        'alertmanager-storage.backend': $._config.alertmanager_client_type, | 
| 294 | 290 |       } + | 
| 295 | 291 |       { | 
| 296 |  | -        configdb: { | 
| 297 |  | -          configs_api_url: 'config.%s.svc.cluster.local' % $._config.namespace, | 
| 298 |  | -        }, | 
| 299 | 292 |         gcs: { | 
| 300 |  | -          'alertmanager.storage.gcs.bucketname': $._config.alertmanager_gcs_bucket_name, | 
|  | 293 | +          'alertmanager-storage.gcs.bucket-name': $._config.alertmanager_gcs_bucket_name, | 
| 301 | 294 |         }, | 
| 302 | 295 |         s3: { | 
| 303 |  | -          'alertmanager.storage.s3.url': 'https://%s/%s' % [$._config.aws_region, $._config.alertmanager_s3_bucket_name], | 
|  | 296 | +          'alertmanager-storage.s3.region': $._config.aws_region, | 
|  | 297 | +          'alertmanager-storage.s3.bucket-name': $._config.alertmanager_s3_bucket_name, | 
| 304 | 298 |         }, | 
| 305 | 299 |         'local': { | 
| 306 |  | -          'alertmanager.storage.local.directory': $._config.alertmanager_local_directory, | 
|  | 300 | +          'alertmanager-storage.local.path': $._config.alertmanager_local_directory, | 
| 307 | 301 |         }, | 
| 308 | 302 |       }[$._config.alertmanager_client_type], | 
| 309 | 303 | 
 | 
|  | 
0 commit comments