Skip to content

Commit 52d7bff

Browse files
docs: fix duplicated words in flag help, v1 guarantees and proposals (#7966)
- 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 <ambrish.r@infosys.com>
1 parent f6916ba commit 52d7bff

8 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎docs/blocks-storage/querier.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,7 @@ blocks_storage:
22902290
# compacted blocks.
22912291
expanded_postings_cache:
22922292
# If enabled, ingesters will cache expanded postings for the head block.
2293-
# Only queries with with an equal matcher for metric __name__ are cached.
2293+
# Only queries with an equal matcher for metric __name__ are cached.
22942294
head:
22952295
# Whether the postings cache is enabled or not
22962296
# CLI flag: -blocks-storage.expanded_postings_cache.head.enabled

‎docs/blocks-storage/store-gateway.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2343,7 +2343,7 @@ blocks_storage:
23432343
# compacted blocks.
23442344
expanded_postings_cache:
23452345
# If enabled, ingesters will cache expanded postings for the head block.
2346-
# Only queries with with an equal matcher for metric __name__ are cached.
2346+
# Only queries with an equal matcher for metric __name__ are cached.
23472347
head:
23482348
# Whether the postings cache is enabled or not
23492349
# CLI flag: -blocks-storage.expanded_postings_cache.head.enabled

‎docs/configuration/config-file-reference.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3004,7 +3004,7 @@ tsdb:
30043004
# compacted blocks.
30053005
expanded_postings_cache:
30063006
# If enabled, ingesters will cache expanded postings for the head block.
3007-
# Only queries with with an equal matcher for metric __name__ are cached.
3007+
# Only queries with an equal matcher for metric __name__ are cached.
30083008
head:
30093009
# Whether the postings cache is enabled or not
30103010
# CLI flag: -blocks-storage.expanded_postings_cache.head.enabled

‎docs/configuration/v1-guarantees.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For the v1.0 release, we want to provide the following guarantees:
99

1010
## Flags, Config and minor version upgrades
1111

12-
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.
12+
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.
1313

1414
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.
1515

‎docs/proposals/api_design.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The purpose of this design document is to propose a set of standards that should
1616

1717
## Current Design
1818

19-
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).
19+
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).
2020

2121
## Proposed Design
2222

‎docs/proposals/scalable-alertmanager.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,4 +75,4 @@ Under the assumption we implement the options proposed above, our architecture l
7575

7676
**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.
7777

78-
**Alertmanager state is replicated between instances to keep them in sync**. Where the state is replicated to to is controlled by the ring.
78+
**Alertmanager state is replicated between instances to keep them in sync**. Where the state is replicated to is controlled by the ring.

‎pkg/storage/tsdb/expanded_postings_cache.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func NewPostingCacheMetrics(r prometheus.Registerer) *ExpandedPostingsCacheMetri
7777
}
7878

7979
type TSDBPostingsCacheConfig struct {
80-
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."`
80+
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."`
8181
Blocks PostingsCacheConfig `yaml:"blocks" doc:"description=If enabled, ingesters will cache expanded postings for the compacted blocks. The cache is shared between all blocks."`
8282

8383
// LazyMatcherMaxCardinality configures the maximum label cardinality threshold for

‎schemas/cortex-config-schema.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3530,7 +3530,7 @@
35303530
"type": "object"
35313531
},
35323532
"head": {
3533-
"description": "If enabled, ingesters will cache expanded postings for the head block. Only queries with with an equal matcher for metric __name__ are cached.",
3533+
"description": "If enabled, ingesters will cache expanded postings for the head block. Only queries with an equal matcher for metric __name__ are cached.",
35343534
"properties": {
35353535
"enabled": {
35363536
"default": false,

0 commit comments

Comments
 (0)