docs: Fix config for stream policies mapping (#16104)

pull/16115/head
Dylan Guedes 4 months ago committed by GitHub
parent b7f6bb359b
commit eda27ddebd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 23
      docs/sources/shared/configuration.md
  2. 2
      pkg/validation/limits.go

@ -3613,18 +3613,17 @@ otlp_config:
# CLI flag: -validation.enforced-labels # CLI flag: -validation.enforced-labels
[enforced_labels: <list of strings> | default = []] [enforced_labels: <list of strings> | default = []]
# Map of policies to stream selectors with a priority. Experimental. # Map of policies to stream selectors with a priority. Experimental. Example:
# Example: # policy_stream_mapping:
# policy_stream_mapping: # finance:
# finance: # - selector: '{namespace="prod", container="billing"}'
# - selectors: ["{namespace="prod", container="billing"}"] # priority: 2
# priority: 2 # ops:
# ops: # - selector: '{namespace="prod", container="ops"}'
# - selectors: ["{namespace="prod", container="ops"}"] # priority: 1
# priority: 1 # staging:
# staging: # - selector: '{namespace="staging"}'
# - selectors: ["{namespace="staging"}, {namespace="dev"}"] # priority: 1
# priority: 1
[policy_stream_mapping: <map of string to list of PriorityStreams>] [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 # The number of partitions a tenant's data should be sharded to when using kafka

@ -230,7 +230,7 @@ type Limits struct {
BlockIngestionUntil dskit_flagext.Time `yaml:"block_ingestion_until" json:"block_ingestion_until"` BlockIngestionUntil dskit_flagext.Time `yaml:"block_ingestion_until" json:"block_ingestion_until"`
BlockIngestionStatusCode int `yaml:"block_ingestion_status_code" json:"block_ingestion_status_code"` BlockIngestionStatusCode int `yaml:"block_ingestion_status_code" json:"block_ingestion_status_code"`
EnforcedLabels []string `yaml:"enforced_labels" json:"enforced_labels" category:"experimental"` 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"` IngestionPartitionsTenantShardSize int `yaml:"ingestion_partitions_tenant_shard_size" json:"ingestion_partitions_tenant_shard_size" category:"experimental"`

Loading…
Cancel
Save