Skip to content

Commit 599f8f8

Browse files
Bhuwan Sahnialexqyle
authored andcommitted
Rename max exemplars limit flag to ingester.max-exemplars. (cortexproject#5122)
Signed-off-by: sahnib <sahnib@amazon.com> Signed-off-by: Alex Le <leqiyue@amazon.com>
1 parent 35a09ee commit 599f8f8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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)