Skip to content

Commit 4a82d36

Browse files
authored
Enable native histogram for Cortex req duration metric (#6056)
* always enable native histogram for cortex_request_duration_seconds metric Signed-off-by: Ben Ye <[email protected]> * update changelog Signed-off-by: Ben Ye <[email protected]> --------- Signed-off-by: Ben Ye <[email protected]>
1 parent 492962e commit 4a82d36

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## master / unreleased
44
* [CHANGE] Upgrade Dockerfile Node version from 14x to 18x. #5906
55
* [CHANGE] Ingester: Remove `-querier.query-store-for-labels-enabled` flag. Querying long-term store for labels is always enabled. #5984
6+
* [CHANGE] Server: Instrument `cortex_request_duration_seconds` metric with native histogram. If `native-histograms` feature is enabled in monitoring Prometheus then the metric name needs to be updated in your dashboards. #6056
67
* [FEATURE] Ingester: Experimental: Enable native histogram ingestion via `-blocks-storage.tsdb.enable-native-histograms` flag. #5986
78
* [ENHANCEMENT] rulers: Add support to persist tokens in rulers. #5987
89
* [ENHANCEMENT] Query Frontend/Querier: Added store gateway postings touched count and touched size in Querier stats and log in Query Frontend. #5892

Diff for: pkg/cortex/cortex.go

+1
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ type Config struct {
129129
func (c *Config) RegisterFlags(f *flag.FlagSet) {
130130
c.Server.MetricsNamespace = "cortex"
131131
c.Server.ExcludeRequestInLog = true
132+
c.Server.MetricsNativeHistogramFactor = 1.1
132133

133134
// Set the default module list to 'all'
134135
c.Target = []string{All}

0 commit comments

Comments
 (0)