|
902 | 902 | } |
903 | 903 | }, |
904 | 904 | "type": "object" |
| 905 | + }, |
| 906 | + "users_scanner": { |
| 907 | + "properties": { |
| 908 | + "cache_ttl": { |
| 909 | + "default": "0s", |
| 910 | + "description": "TTL of the cached users. 0 disables caching and relies on caching at bucket client level.", |
| 911 | + "type": "string", |
| 912 | + "x-cli-flag": "alertmanager-storage.users-scanner.cache-ttl", |
| 913 | + "x-format": "duration" |
| 914 | + }, |
| 915 | + "clean_up_interval": { |
| 916 | + "default": "15m0s", |
| 917 | + "description": "How frequently user index file is updated, it only take effect when user scan stratehy is user_index.", |
| 918 | + "type": "string", |
| 919 | + "x-cli-flag": "alertmanager-storage.users-scanner.user-index.cleanup-interval", |
| 920 | + "x-format": "duration" |
| 921 | + }, |
| 922 | + "max_stale_period": { |
| 923 | + "default": "1h0m0s", |
| 924 | + "description": "Maximum period of time to consider the user index as stale. Fall back to the base scanner if stale. Only valid when strategy is user_index.", |
| 925 | + "type": "string", |
| 926 | + "x-cli-flag": "alertmanager-storage.users-scanner.user-index.max-stale-period", |
| 927 | + "x-format": "duration" |
| 928 | + }, |
| 929 | + "strategy": { |
| 930 | + "default": "list", |
| 931 | + "description": "Strategy to use to scan users. Supported values are: list, user_index.", |
| 932 | + "type": "string", |
| 933 | + "x-cli-flag": "alertmanager-storage.users-scanner.strategy" |
| 934 | + } |
| 935 | + }, |
| 936 | + "type": "object" |
905 | 937 | } |
906 | 938 | }, |
907 | 939 | "type": "object" |
|
3076 | 3108 | "x-cli-flag": "blocks-storage.users-scanner.cache-ttl", |
3077 | 3109 | "x-format": "duration" |
3078 | 3110 | }, |
| 3111 | + "clean_up_interval": { |
| 3112 | + "default": "15m0s", |
| 3113 | + "description": "How frequently user index file is updated, it only take effect when user scan stratehy is user_index.", |
| 3114 | + "type": "string", |
| 3115 | + "x-cli-flag": "blocks-storage.users-scanner.user-index.cleanup-interval", |
| 3116 | + "x-format": "duration" |
| 3117 | + }, |
3079 | 3118 | "max_stale_period": { |
3080 | 3119 | "default": "1h0m0s", |
3081 | 3120 | "description": "Maximum period of time to consider the user index as stale. Fall back to the base scanner if stale. Only valid when strategy is user_index.", |
|
7345 | 7384 | } |
7346 | 7385 | }, |
7347 | 7386 | "type": "object" |
| 7387 | + }, |
| 7388 | + "users_scanner": { |
| 7389 | + "properties": { |
| 7390 | + "cache_ttl": { |
| 7391 | + "default": "0s", |
| 7392 | + "description": "TTL of the cached users. 0 disables caching and relies on caching at bucket client level.", |
| 7393 | + "type": "string", |
| 7394 | + "x-cli-flag": "ruler-storage.users-scanner.cache-ttl", |
| 7395 | + "x-format": "duration" |
| 7396 | + }, |
| 7397 | + "clean_up_interval": { |
| 7398 | + "default": "15m0s", |
| 7399 | + "description": "How frequently user index file is updated, it only take effect when user scan stratehy is user_index.", |
| 7400 | + "type": "string", |
| 7401 | + "x-cli-flag": "ruler-storage.users-scanner.user-index.cleanup-interval", |
| 7402 | + "x-format": "duration" |
| 7403 | + }, |
| 7404 | + "max_stale_period": { |
| 7405 | + "default": "1h0m0s", |
| 7406 | + "description": "Maximum period of time to consider the user index as stale. Fall back to the base scanner if stale. Only valid when strategy is user_index.", |
| 7407 | + "type": "string", |
| 7408 | + "x-cli-flag": "ruler-storage.users-scanner.user-index.max-stale-period", |
| 7409 | + "x-format": "duration" |
| 7410 | + }, |
| 7411 | + "strategy": { |
| 7412 | + "default": "list", |
| 7413 | + "description": "Strategy to use to scan users. Supported values are: list, user_index.", |
| 7414 | + "type": "string", |
| 7415 | + "x-cli-flag": "ruler-storage.users-scanner.strategy" |
| 7416 | + } |
| 7417 | + }, |
| 7418 | + "type": "object" |
7348 | 7419 | } |
7349 | 7420 | }, |
7350 | 7421 | "type": "object" |
|
0 commit comments