Prometheus: Create feature flag to disable exemplar sampling (#60105)

:Fix rebase
This commit is contained in:
Ludovic Viaud
2022-12-19 16:00:15 +01:00
committed by GitHub
parent bce33eeb85
commit f67b8fe0dc
7 changed files with 64 additions and 38 deletions
+5
View File
@@ -382,6 +382,11 @@ var (
Description: "Enable using remote cache for user sessions",
State: FeatureStateAlpha,
},
{
Name: "disablePrometheusExemplarSampling",
Description: "Disable Prometheus examplar sampling",
State: FeatureStateStable,
},
{
Name: "alertingBacktesting",
Description: "Rule backtesting API for alerting",
+4
View File
@@ -279,6 +279,10 @@ const (
// Enable using remote cache for user sessions
FlagSessionRemoteCache = "sessionRemoteCache"
// FlagDisablePrometheusExemplarSampling
// Disable Prometheus examplar sampling
FlagDisablePrometheusExemplarSampling = "disablePrometheusExemplarSampling"
// FlagAlertingBacktesting
// Rule backtesting API for alerting
FlagAlertingBacktesting = "alertingBacktesting"