Repository navigation
Add configuration option to control extra-scrape-metrics - #17606
Conversation
|
Note that in the doc you say: removed in a future major version, but in the PR you say minor (I'd prefer major). |
whoops, PR description updated |
|
This is different from what we did for native histograms where the config file takes precedence #17315 . Meaning that you can override the feature flag by setting the option to "false". This solution is simpler, but I think we need to make clear in the documentation that if you do set the feature flag, the configuration option isn't effective at all. |
|
Weird, I'm not seeing this build errors locally even though I have no diff with this branch 🤔 |
a471d3e to
5630772
Compare
|
Ah ok, it's an incompatibility with #17427. Found the problem after rebasing the PR. Let me fix that |
d36c78c to
20c3652
Compare
There was a problem hiding this comment.
LGTM
New diff for scrape.go:
diff --git a/scrape/scrape.go b/scrape/scrape.go
index 33683b4ca..70ca8ad42 100644
--- a/scrape/scrape.go
+++ b/scrape/scrape.go
@@ -1212,12 +1212,12 @@ func newScrapeLoop(opts scrapeLoopOptions) *scrapeLoop {
fallbackScrapeProtocol: opts.sp.config.ScrapeFallbackProtocol.HeaderMediaType(),
enableCompression: opts.sp.config.EnableCompression,
mrc: opts.sp.config.MetricRelabelConfigs,
+ reportExtraMetrics: opts.sp.config.ExtraScrapeMetricsEnabled(),
validationScheme: opts.sp.config.MetricNameValidationScheme,
// scrape.Options.
enableSTZeroIngestion: opts.sp.options.EnableStartTimestampZeroIngestion,
enableTypeAndUnitLabels: opts.sp.options.EnableTypeAndUnitLabels,
- reportExtraMetrics: opts.sp.options.ExtraMetrics,
appendMetadataToWAL: opts.sp.options.AppendMetadata,
passMetadataInContext: opts.sp.options.PassMetadataInContext,
skipOffsetting: opts.sp.options.skipOffsetting,
20c3652 to
bfcc167
Compare
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
Signed-off-by: Arthur Silva Sens <[email protected]>
bfcc167 to
d91a8be
Compare
Fixes #17535
As mentioned in the issue, the feature flag has been in place for at least four years, so I propose a new configuration option to stabilize the feature.
Following the example set by native-histograms, my plan here would be: