Skip to content

Commit 878727d

Browse files
eneissJStickler
andauthored
docs: Fix typos in limits.go (#15840)
Signed-off-by: Emma Neiss <[email protected]> Co-authored-by: J Stickler <[email protected]>
1 parent 143acc0 commit 878727d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/sources/shared/configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3745,7 +3745,7 @@ ruler_remote_write_sigv4_config:
37453745
# CLI flag: -store.retention
37463746
[retention_period: <duration> | default = 0s]
37473747

3748-
# Per-stream retention to apply, if the retention is enable on the compactor
3748+
# Per-stream retention to apply, if the retention is enabled on the compactor
37493749
# side.
37503750
# Example:
37513751
# retention_stream:
@@ -3756,7 +3756,7 @@ ruler_remote_write_sigv4_config:
37563756
# priority: 1
37573757
# period: 744h
37583758
# Selector is a Prometheus labels matchers that will apply the 'period'
3759-
# retention only if the stream is matching. In case multiple stream are
3759+
# retention only if the stream is matching. In case multiple streams are
37603760
# matching, the highest priority will be picked. If no rule is matched the
37613761
# 'retention_period' is used.
37623762
[retention_stream: <list of StreamRetentions>]

pkg/validation/limits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ type Limits struct {
186186

187187
// Global and per tenant retention
188188
RetentionPeriod model.Duration `yaml:"retention_period" json:"retention_period"`
189-
StreamRetention []StreamRetention `yaml:"retention_stream,omitempty" json:"retention_stream,omitempty" doc:"description=Per-stream retention to apply, if the retention is enable on the compactor side.\nExample:\n retention_stream:\n - selector: '{namespace=\"dev\"}'\n priority: 1\n period: 24h\n- selector: '{container=\"nginx\"}'\n priority: 1\n period: 744h\nSelector is a Prometheus labels matchers that will apply the 'period' retention only if the stream is matching. In case multiple stream are matching, the highest priority will be picked. If no rule is matched the 'retention_period' is used."`
189+
StreamRetention []StreamRetention `yaml:"retention_stream,omitempty" json:"retention_stream,omitempty" doc:"description=Per-stream retention to apply, if the retention is enabled on the compactor side.\nExample:\n retention_stream:\n - selector: '{namespace=\"dev\"}'\n priority: 1\n period: 24h\n- selector: '{container=\"nginx\"}'\n priority: 1\n period: 744h\nSelector is a Prometheus labels matchers that will apply the 'period' retention only if the stream is matching. In case multiple streams are matching, the highest priority will be picked. If no rule is matched the 'retention_period' is used."`
190190

191191
// Config for overrides, convenient if it goes here.
192192
PerTenantOverrideConfig string `yaml:"per_tenant_override_config" json:"per_tenant_override_config"`

0 commit comments

Comments
 (0)