Disable snapshot on shutdown if native histograms are enabled (#11473)

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
This commit is contained in:
Ganesh Vernekar 2022-10-19 15:21:29 +05:30 committed by GitHub
parent 41035469d3
commit 04b370da00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -208,6 +208,12 @@ func (c *flagConfig) setFeatureListOptions(logger log.Logger) error {
} }
} }
} }
if c.tsdb.EnableNativeHistograms && c.tsdb.EnableMemorySnapshotOnShutdown {
c.tsdb.EnableMemorySnapshotOnShutdown = false
level.Warn(logger).Log("msg", "memory-snapshot-on-shutdown has been disabled automatically because memory-snapshot-on-shutdown and native-histograms cannot be enabled at the same time.")
}
return nil return nil
} }