diff --git a/CHANGELOG.md b/CHANGELOG.md index bd60e4986ef..b6adba6557d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ * `cortex_alertmanager_nflog_maintenance_errors_total` * `cortex_alertmanager_silences_maintenance_total` * `cortex_alertmanager_silences_maintenance_errors_total` +* [ENHANCEMENT] Add native histogram support for `cortex_request_duration_seconds` metric family. #4987 * [BUGFIX] Metadata API: Mimir will now return an empty object when no metadata is available, matching Prometheus. #4782 * [BUGFIX] Store-gateway: add collision detection on expanded postings and individual postings cache keys. #4770 * [BUGFIX] Ruler: Support the `type=alert|record` query parameter for the API endpoint `/api/v1/rules`. #4302 diff --git a/pkg/mimir/mimir.go b/pkg/mimir/mimir.go index 60b70035f95..062a0a85425 100644 --- a/pkg/mimir/mimir.go +++ b/pkg/mimir/mimir.go @@ -138,6 +138,8 @@ type Config struct { func (c *Config) RegisterFlags(f *flag.FlagSet, logger log.Logger) { c.ApplicationName = "Grafana Mimir" c.Server.MetricsNamespace = "cortex" + // Enable native histograms for enabled scrapers with 10% bucket growth. + c.Server.MetricsNativeHistogramFactor = 1.1 c.Server.ExcludeRequestInLog = true c.Server.DisableRequestSuccessLog = true