Skip to content

Commit 0c582b3

Browse files
committed
update json config
Signed-off-by: SungJin1212 <[email protected]>
1 parent 3d3307f commit 0c582b3

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

schemas/cortex-config-schema.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,38 @@
902902
}
903903
},
904904
"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"
905937
}
906938
},
907939
"type": "object"
@@ -3076,6 +3108,13 @@
30763108
"x-cli-flag": "blocks-storage.users-scanner.cache-ttl",
30773109
"x-format": "duration"
30783110
},
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+
},
30793118
"max_stale_period": {
30803119
"default": "1h0m0s",
30813120
"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,6 +7384,38 @@
73457384
}
73467385
},
73477386
"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"
73487419
}
73497420
},
73507421
"type": "object"

0 commit comments

Comments
 (0)