How to save rule files in Azure storage for Ruler service #4248
-
Hey All, Per the documentation mentioned here https://cortexmetrics.io/docs/guides/ruler-sharding/#ruler-storage,
But how do I have to store the rule files in azure storage if I specify 'azure' as the backend using 'ruler_storage_config'? Also, if I specify tenantid as the subfolder, then that means only rules defined inside each tenantid folder will be run for that particular tenant? And can I have multiple rule files for each tenant(inside each 'tenant id' folder) and code will automatically take care of running all the rules? Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello, when using azure rule-store (or any other object store based rule store), you need to use Ruler API to upload rules. It's not enough to upload rule configuration to object store manually, as ruler does additional processing of the uploaded rule groups, before storing them to object store. Ruler API is described here: https://cortexmetrics.io/docs/api/#ruler, and must explicitly be enabled using To simplify uploading rules, you can use |
Beta Was this translation helpful? Give feedback.
Hello, when using azure rule-store (or any other object store based rule store), you need to use Ruler API to upload rules. It's not enough to upload rule configuration to object store manually, as ruler does additional processing of the uploaded rule groups, before storing them to object store.
Ruler API is described here: https://cortexmetrics.io/docs/api/#ruler, and must explicitly be enabled using
-experimental.ruler.enable-api
command line option for now.To simplify uploading rules, you can use
cortextool
command from https://github.com/grafana/cortex-tools repository.