Skip to content

Commit 08453c3

Browse files
author
sahnib
committed
Rename max exemplars limit flag to ingester.max-exemplars.
Signed-off-by: sahnib <[email protected]>
1 parent 204e251 commit 08453c3

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Changelog
22

33
## master / unreleased
4+
* [CHANGE] Ingester: Rename max-exemplars limits config to ingester.max-exemplars instead of blocks-storage.tsdb.max-exemplars. #5122
45
* [CHANGE] Storage: Make Max exemplars config per tenant instead of global configuration. #5016
56
* [CHANGE] Alertmanager: Local file disclosure vulnerability in OpsGenie configuration has been fixed. #5045
67
* [CHANGE] Rename oltp_endpoint to otlp_endpoint to match opentelemetry spec and lib name. #5067

docs/configuration/config-file-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2722,7 +2722,7 @@ The `limits_config` configures default and per-tenant limits imposed by Cortex s
27222722
# Enables support for exemplars in TSDB and sets the maximum number that will be
27232723
# stored. less than zero means disabled. If the value is set to zero, cortex
27242724
# will fallback to blocks-storage.tsdb.max-exemplars value.
2725-
# CLI flag: -block-storage.tsdb.max-exemplars
2725+
# CLI flag: -ingester.max-exemplars
27262726
[max_exemplars: <int> | default = 0]
27272727
27282728
# The maximum number of series for which a query can fetch samples from each

pkg/util/validation/limits.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (l *Limits) RegisterFlags(f *flag.FlagSet) {
149149
f.IntVar(&l.MaxLocalSeriesPerMetric, "ingester.max-series-per-metric", 50000, "The maximum number of active series per metric name, per ingester. 0 to disable.")
150150
f.IntVar(&l.MaxGlobalSeriesPerUser, "ingester.max-global-series-per-user", 0, "The maximum number of active series per user, across the cluster before replication. 0 to disable. Supported only if -distributor.shard-by-all-labels is true.")
151151
f.IntVar(&l.MaxGlobalSeriesPerMetric, "ingester.max-global-series-per-metric", 0, "The maximum number of active series per metric name, across the cluster before replication. 0 to disable.")
152-
f.IntVar(&l.MaxExemplars, "block-storage.tsdb.max-exemplars", 0, "Enables support for exemplars in TSDB and sets the maximum number that will be stored. less than zero means disabled. If the value is set to zero, cortex will fallback to blocks-storage.tsdb.max-exemplars value.")
152+
f.IntVar(&l.MaxExemplars, "ingester.max-exemplars", 0, "Enables support for exemplars in TSDB and sets the maximum number that will be stored. less than zero means disabled. If the value is set to zero, cortex will fallback to blocks-storage.tsdb.max-exemplars value.")
153153

154154
f.IntVar(&l.MaxLocalMetricsWithMetadataPerUser, "ingester.max-metadata-per-user", 8000, "The maximum number of active metrics with metadata per user, per ingester. 0 to disable.")
155155
f.IntVar(&l.MaxLocalMetadataPerMetric, "ingester.max-metadata-per-metric", 10, "The maximum number of metadata per metric, per ingester. 0 to disable.")

0 commit comments

Comments
 (0)