Skip to content

Commit

Permalink
Add support for local ruler_client_type (grafana/cortex-jsonnet#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpdstan authored Sep 4, 2020
1 parent f23f8f7 commit 969ec8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion operations/mimir/config.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
},

ruler_enabled: false,
ruler_client_type: error 'you must specify a storage backend type for the ruler (azure, configdb, gcs, s3)',
ruler_client_type: error 'you must specify a storage backend type for the ruler (azure, configdb, gcs, s3, local)',
// TODO: Generic client generating functions would be nice.
ruler_s3_bucket_name: $._config.s3_bucket_name,
ruler_gcs_bucket_name: error 'must specify a GCS bucket name',
Expand All @@ -238,6 +238,9 @@
s3: {
's3.url': 'https://%s/%s' % [$._config.aws_region, $._config.ruler_s3_bucket_name],
},
'local': {
'ruler.storage.local.directory': $._config.ruler_local_directory,
},
}[$._config.ruler_client_type],

overrides: {
Expand Down

0 comments on commit 969ec8b

Please sign in to comment.