diff --git a/CHANGELOG.md b/CHANGELOG.md index a4f91b90f0..a78a7572d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ We use *breaking :warning:* to mark changes that are not backward compatible (re - [#6183](https://github.com/thanos-io/thanos/pull/6183) Receiver: fix off by one in multitsdb flush that will result in empty blocks if the head only contains one sample - [#6197](https://github.com/thanos-io/thanos/pull/6197) Exemplar OTel: Fix exemplar for otel to use traceId instead of spanId and sample only if trace is sampled - [#6207](https://github.com/thanos-io/thanos/pull/6207) Receive: Remove the shipper once a tenant has been pruned. +- [#6216](https://github.com/thanos-io/thanos/pull/6216) Receiver: removed hard-coded value of EnableExemplarStorage flag and set it according to max-exemplar value ### Changed - [#6168](https://github.com/thanos-io/thanos/pull/6168) Receiver: Make ketama hashring fail early when configured with number of nodes lower than the replication factor. diff --git a/cmd/thanos/receive.go b/cmd/thanos/receive.go index 7e60a9f546..4e5093a997 100644 --- a/cmd/thanos/receive.go +++ b/cmd/thanos/receive.go @@ -85,7 +85,7 @@ func registerReceive(app *extkingpin.App) { NoLockfile: conf.noLockFile, WALCompression: conf.walCompression, MaxExemplars: conf.tsdbMaxExemplars, - EnableExemplarStorage: true, + EnableExemplarStorage: conf.tsdbMaxExemplars > 0, HeadChunksWriteQueueSize: int(conf.tsdbWriteQueueSize), EnableMemorySnapshotOnShutdown: conf.tsdbMemorySnapshotOnShutdown, EnableNativeHistograms: conf.tsdbEnableNativeHistograms,