Skip to content

Commit

Permalink
docs: Fix config for stream policies mapping (#16104)
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanGuedes authored Feb 5, 2025
1 parent b7f6bb3 commit eda27dd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 13 deletions.
23 changes: 11 additions & 12 deletions docs/sources/shared/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -3613,18 +3613,17 @@ otlp_config:
# CLI flag: -validation.enforced-labels
[enforced_labels: <list of strings> | default = []]

# Map of policies to stream selectors with a priority. Experimental.
# Example:
# policy_stream_mapping:
# finance:
# - selectors: ["{namespace="prod", container="billing"}"]
# priority: 2
# ops:
# - selectors: ["{namespace="prod", container="ops"}"]
# priority: 1
# staging:
# - selectors: ["{namespace="staging"}, {namespace="dev"}"]
# priority: 1
# Map of policies to stream selectors with a priority. Experimental. Example:
# policy_stream_mapping:
# finance:
# - selector: '{namespace="prod", container="billing"}'
# priority: 2
# ops:
# - selector: '{namespace="prod", container="ops"}'
# priority: 1
# staging:
# - selector: '{namespace="staging"}'
# priority: 1
[policy_stream_mapping: <map of string to list of PriorityStreams>]

# The number of partitions a tenant's data should be sharded to when using kafka
Expand Down
2 changes: 1 addition & 1 deletion pkg/validation/limits.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ type Limits struct {
BlockIngestionUntil dskit_flagext.Time `yaml:"block_ingestion_until" json:"block_ingestion_until"`
BlockIngestionStatusCode int `yaml:"block_ingestion_status_code" json:"block_ingestion_status_code"`
EnforcedLabels []string `yaml:"enforced_labels" json:"enforced_labels" category:"experimental"`
PolicyStreamMapping PolicyStreamMapping `yaml:"policy_stream_mapping" json:"policy_stream_mapping" category:"experimental" doc:"description=Map of policies to stream selectors with a priority. Experimental.\nExample:\npolicy_stream_mapping:\n finance:\n - selectors: [\"{namespace=\"prod\", container=\"billing\"}\"]\n priority: 2\n ops:\n - selectors: [\"{namespace=\"prod\", container=\"ops\"}\"]\n priority: 1\n staging:\n - selectors: [\"{namespace=\"staging\"}, {namespace=\"dev\"}\"]\n priority: 1"`
PolicyStreamMapping PolicyStreamMapping `yaml:"policy_stream_mapping" json:"policy_stream_mapping" category:"experimental" doc:"description=Map of policies to stream selectors with a priority. Experimental. Example:\n policy_stream_mapping: \n finance: \n - selector: '{namespace=\"prod\", container=\"billing\"}' \n priority: 2 \n ops: \n - selector: '{namespace=\"prod\", container=\"ops\"}' \n priority: 1 \n staging: \n - selector: '{namespace=\"staging\"}' \n priority: 1"`

IngestionPartitionsTenantShardSize int `yaml:"ingestion_partitions_tenant_shard_size" json:"ingestion_partitions_tenant_shard_size" category:"experimental"`

Expand Down

0 comments on commit eda27dd

Please sign in to comment.