@@ -90,46 +90,56 @@ receivers:
9090var (
9191 cortexSchemaConfigYaml = buildSchemaConfigWith ([]storeConfig {{From : "2019-03-20" , IndexStore : "aws-dynamo" }})
9292
93- AlertmanagerFlags = map [string ]string {
94- "-alertmanager.configs.poll-interval" : "1s" ,
95- "-alertmanager.web.external-url" : "http://localhost/api/prom" ,
93+ AlertmanagerFlags = func () map [string ]string {
94+ return map [string ]string {
95+ "-alertmanager.configs.poll-interval" : "1s" ,
96+ "-alertmanager.web.external-url" : "http://localhost/api/prom" ,
97+ }
9698 }
9799
98- AlertmanagerLocalFlags = map [string ]string {
99- "-alertmanager.storage.type" : "local" ,
100- "-alertmanager.storage.local.path" : filepath .Join (e2e .ContainerSharedDir , "alertmanager_configs" ),
100+ AlertmanagerLocalFlags = func () map [string ]string {
101+ return map [string ]string {
102+ "-alertmanager.storage.type" : "local" ,
103+ "-alertmanager.storage.local.path" : filepath .Join (e2e .ContainerSharedDir , "alertmanager_configs" ),
104+ }
101105 }
102106
103- AlertmanagerS3Flags = map [string ]string {
104- "-alertmanager.storage.type" : "s3" ,
105- "-alertmanager.storage.s3.buckets" : "cortex-alerts" ,
106- "-alertmanager.storage.s3.force-path-style" : "true" ,
107- "-alertmanager.storage.s3.url" : fmt .Sprintf ("s3://%s:%s@%s-minio-9000.:9000" , e2edb .MinioAccessKey , e2edb .MinioSecretKey , networkName ),
107+ AlertmanagerS3Flags = func () map [string ]string {
108+ return map [string ]string {
109+ "-alertmanager.storage.type" : "s3" ,
110+ "-alertmanager.storage.s3.buckets" : "cortex-alerts" ,
111+ "-alertmanager.storage.s3.force-path-style" : "true" ,
112+ "-alertmanager.storage.s3.url" : fmt .Sprintf ("s3://%s:%s@%s-minio-9000.:9000" , e2edb .MinioAccessKey , e2edb .MinioSecretKey , networkName ),
113+ }
108114 }
109115
110- RulerConfigs = map [string ]string {
111- "-ruler.enable-sharding" : "false" ,
112- "-ruler.poll-interval" : "2s" ,
113- "-experimental.ruler.enable-api" : "true" ,
114- "-ruler.storage.type" : "s3" ,
115- "-ruler.storage.s3.buckets" : "cortex-rules" ,
116- "-ruler.storage.s3.force-path-style" : "true" ,
117- "-ruler.storage.s3.url" : fmt .Sprintf ("s3://%s:%s@%s-minio-9000.:9000" , e2edb .MinioAccessKey , e2edb .MinioSecretKey , networkName ),
116+ RulerFlags = func () map [string ]string {
117+ return map [string ]string {
118+ "-ruler.enable-sharding" : "false" ,
119+ "-ruler.poll-interval" : "2s" ,
120+ "-experimental.ruler.enable-api" : "true" ,
121+ "-ruler.storage.type" : "s3" ,
122+ "-ruler.storage.s3.buckets" : "cortex-rules" ,
123+ "-ruler.storage.s3.force-path-style" : "true" ,
124+ "-ruler.storage.s3.url" : fmt .Sprintf ("s3://%s:%s@%s-minio-9000.:9000" , e2edb .MinioAccessKey , e2edb .MinioSecretKey , networkName ),
125+ }
118126 }
119127
120- BlocksStorageFlags = map [string ]string {
121- "-store.engine" : blocksStorageEngine ,
122- "-blocks-storage.backend" : "s3" ,
123- "-blocks-storage.tsdb.block-ranges-period" : "1m" ,
124- "-blocks-storage.bucket-store.sync-interval" : "5s" ,
125- "-blocks-storage.tsdb.retention-period" : "5m" ,
126- "-blocks-storage.tsdb.ship-interval" : "1m" ,
127- "-blocks-storage.tsdb.head-compaction-interval" : "1s" ,
128- "-blocks-storage.s3.access-key-id" : e2edb .MinioAccessKey ,
129- "-blocks-storage.s3.secret-access-key" : e2edb .MinioSecretKey ,
130- "-blocks-storage.s3.bucket-name" : bucketName ,
131- "-blocks-storage.s3.endpoint" : fmt .Sprintf ("%s-minio-9000:9000" , networkName ),
132- "-blocks-storage.s3.insecure" : "true" ,
128+ BlocksStorageFlags = func () map [string ]string {
129+ return map [string ]string {
130+ "-store.engine" : blocksStorageEngine ,
131+ "-blocks-storage.backend" : "s3" ,
132+ "-blocks-storage.tsdb.block-ranges-period" : "1m" ,
133+ "-blocks-storage.bucket-store.sync-interval" : "5s" ,
134+ "-blocks-storage.tsdb.retention-period" : "5m" ,
135+ "-blocks-storage.tsdb.ship-interval" : "1m" ,
136+ "-blocks-storage.tsdb.head-compaction-interval" : "1s" ,
137+ "-blocks-storage.s3.access-key-id" : e2edb .MinioAccessKey ,
138+ "-blocks-storage.s3.secret-access-key" : e2edb .MinioSecretKey ,
139+ "-blocks-storage.s3.bucket-name" : bucketName ,
140+ "-blocks-storage.s3.endpoint" : fmt .Sprintf ("%s-minio-9000:9000" , networkName ),
141+ "-blocks-storage.s3.insecure" : "true" ,
142+ }
133143 }
134144
135145 BlocksStorageConfig = buildConfigFromTemplate (`
@@ -163,11 +173,13 @@ blocks_storage:
163173 MinioEndpoint : fmt .Sprintf ("%s-minio-9000:9000" , networkName ),
164174 })
165175
166- ChunksStorageFlags = map [string ]string {
167- "-dynamodb.url" : fmt .Sprintf ("dynamodb://u:p@%s-dynamodb.:8000" , networkName ),
168- "-table-manager.poll-interval" : "1m" ,
169- "-schema-config-file" : filepath .Join (e2e .ContainerSharedDir , cortexSchemaConfigFile ),
170- "-table-manager.retention-period" : "168h" ,
176+ ChunksStorageFlags = func () map [string ]string {
177+ return map [string ]string {
178+ "-dynamodb.url" : fmt .Sprintf ("dynamodb://u:p@%s-dynamodb.:8000" , networkName ),
179+ "-table-manager.poll-interval" : "1m" ,
180+ "-schema-config-file" : filepath .Join (e2e .ContainerSharedDir , cortexSchemaConfigFile ),
181+ "-table-manager.retention-period" : "168h" ,
182+ }
171183 }
172184
173185 ChunksStorageConfig = buildConfigFromTemplate (`
0 commit comments