From de373eaac5bfd469be32725e714e817f705588cc Mon Sep 17 00:00:00 2001 From: AmbrishRamachandiran Date: Tue, 24 Nov 2026 16:08:12 +0000 Subject: [PATCH] docs: fix duplicated words in flag help, v1 guarantees and proposals - expanded postings cache flag help: "Only queries with with an equal matcher" -> "with"; regenerated reference docs and JSON schema updated to match (same text as `make doc` produces) - v1-guarantees: "we will will keep" -> "will" - proposals: "run as as part of", "replicated to to" Signed-off-by: AmbrishRamachandiran --- docs/blocks-storage/querier.md | 2 +- docs/blocks-storage/store-gateway.md | 2 +- docs/configuration/config-file-reference.md | 2 +- docs/configuration/v1-guarantees.md | 2 +- docs/proposals/api_design.md | 2 +- docs/proposals/scalable-alertmanager.md | 2 +- pkg/storage/tsdb/expanded_postings_cache.go | 2 +- schemas/cortex-config-schema.json | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/blocks-storage/querier.md b/docs/blocks-storage/querier.md index 6ccc5555263..4a83e4972cb 100644 --- a/docs/blocks-storage/querier.md +++ b/docs/blocks-storage/querier.md @@ -2290,7 +2290,7 @@ blocks_storage: # compacted blocks. expanded_postings_cache: # If enabled, ingesters will cache expanded postings for the head block. - # Only queries with with an equal matcher for metric __name__ are cached. + # Only queries with an equal matcher for metric __name__ are cached. head: # Whether the postings cache is enabled or not # CLI flag: -blocks-storage.expanded_postings_cache.head.enabled diff --git a/docs/blocks-storage/store-gateway.md b/docs/blocks-storage/store-gateway.md index ee95f9c7e11..955a7891a7d 100644 --- a/docs/blocks-storage/store-gateway.md +++ b/docs/blocks-storage/store-gateway.md @@ -2343,7 +2343,7 @@ blocks_storage: # compacted blocks. expanded_postings_cache: # If enabled, ingesters will cache expanded postings for the head block. - # Only queries with with an equal matcher for metric __name__ are cached. + # Only queries with an equal matcher for metric __name__ are cached. head: # Whether the postings cache is enabled or not # CLI flag: -blocks-storage.expanded_postings_cache.head.enabled diff --git a/docs/configuration/config-file-reference.md b/docs/configuration/config-file-reference.md index 70e035b35f1..9fd5b281df8 100644 --- a/docs/configuration/config-file-reference.md +++ b/docs/configuration/config-file-reference.md @@ -3004,7 +3004,7 @@ tsdb: # compacted blocks. expanded_postings_cache: # If enabled, ingesters will cache expanded postings for the head block. - # Only queries with with an equal matcher for metric __name__ are cached. + # Only queries with an equal matcher for metric __name__ are cached. head: # Whether the postings cache is enabled or not # CLI flag: -blocks-storage.expanded_postings_cache.head.enabled diff --git a/docs/configuration/v1-guarantees.md b/docs/configuration/v1-guarantees.md index 345bdd5ee0c..d4be5c42411 100644 --- a/docs/configuration/v1-guarantees.md +++ b/docs/configuration/v1-guarantees.md @@ -9,7 +9,7 @@ For the v1.0 release, we want to provide the following guarantees: ## Flags, Config and minor version upgrades -Upgrading cortex from one minor version to the next should "just work"; that being said, we don't want to bump the major version every time we remove a flag, so we will will keep deprecated flags around for 2 minor release. There is a metric (`deprecated_flags_inuse_total`) you can alert on to find out if you're using a deprecated flag. +Upgrading cortex from one minor version to the next should "just work"; that being said, we don't want to bump the major version every time we remove a flag, so we will keep deprecated flags around for 2 minor release. There is a metric (`deprecated_flags_inuse_total`) you can alert on to find out if you're using a deprecated flag. Similarly to flags, minor version upgrades using config files should "just work". If we do need to change config, we will keep the old way working for two minor version. There will be a metric you can alert on for this too. diff --git a/docs/proposals/api_design.md b/docs/proposals/api_design.md index 2c666d44388..b7ec4c8f218 100644 --- a/docs/proposals/api_design.md +++ b/docs/proposals/api_design.md @@ -16,7 +16,7 @@ The purpose of this design document is to propose a set of standards that should ## Current Design -As things currently stand, the majority of HTTP API calls exist under the `/api/prom` path prefix. This prefix is configurable. However, since this prefix is shared between all the modules which leads to conflicts if the Alertmanager is attempted to be run as as part of the single binary (#1722). +As things currently stand, the majority of HTTP API calls exist under the `/api/prom` path prefix. This prefix is configurable. However, since this prefix is shared between all the modules which leads to conflicts if the Alertmanager is attempted to be run as part of the single binary (#1722). ## Proposed Design diff --git a/docs/proposals/scalable-alertmanager.md b/docs/proposals/scalable-alertmanager.md index 662919e80d1..e9f1fe64449 100644 --- a/docs/proposals/scalable-alertmanager.md +++ b/docs/proposals/scalable-alertmanager.md @@ -75,4 +75,4 @@ Under the assumption we implement the options proposed above, our architecture l **GET /api/v1/alerts and /api/v1/alerts/group** uses the ring to find the right alertmanager replicas for the given tenant. They read from a quorum of alertmanager replicas and return an union of the results. -**Alertmanager state is replicated between instances to keep them in sync**. Where the state is replicated to to is controlled by the ring. +**Alertmanager state is replicated between instances to keep them in sync**. Where the state is replicated to is controlled by the ring. diff --git a/pkg/storage/tsdb/expanded_postings_cache.go b/pkg/storage/tsdb/expanded_postings_cache.go index baa8665b9de..fa560d00e1f 100644 --- a/pkg/storage/tsdb/expanded_postings_cache.go +++ b/pkg/storage/tsdb/expanded_postings_cache.go @@ -77,7 +77,7 @@ func NewPostingCacheMetrics(r prometheus.Registerer) *ExpandedPostingsCacheMetri } type TSDBPostingsCacheConfig struct { - Head PostingsCacheConfig `yaml:"head" doc:"description=If enabled, ingesters will cache expanded postings for the head block. Only queries with with an equal matcher for metric __name__ are cached."` + Head PostingsCacheConfig `yaml:"head" doc:"description=If enabled, ingesters will cache expanded postings for the head block. Only queries with an equal matcher for metric __name__ are cached."` Blocks PostingsCacheConfig `yaml:"blocks" doc:"description=If enabled, ingesters will cache expanded postings for the compacted blocks. The cache is shared between all blocks."` // LazyMatcherMaxCardinality configures the maximum label cardinality threshold for diff --git a/schemas/cortex-config-schema.json b/schemas/cortex-config-schema.json index e8bceaa8b0d..4a45fe56684 100644 --- a/schemas/cortex-config-schema.json +++ b/schemas/cortex-config-schema.json @@ -3530,7 +3530,7 @@ "type": "object" }, "head": { - "description": "If enabled, ingesters will cache expanded postings for the head block. Only queries with with an equal matcher for metric __name__ are cached.", + "description": "If enabled, ingesters will cache expanded postings for the head block. Only queries with an equal matcher for metric __name__ are cached.", "properties": { "enabled": { "default": false,