mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Chore: Remove disablePrometheusExemplarSampling feature toggle (#81579)
remove disablePrometheusExemplarSampling ft
This commit is contained in:
parent
6d582858f7
commit
0139ac205d
@ -31,7 +31,6 @@ Some features are enabled by default. You can disable these feature by setting t
|
|||||||
| `redshiftAsyncQueryDataSupport` | Enable async query data support for Redshift | Yes |
|
| `redshiftAsyncQueryDataSupport` | Enable async query data support for Redshift | Yes |
|
||||||
| `athenaAsyncQueryDataSupport` | Enable async query data support for Athena | Yes |
|
| `athenaAsyncQueryDataSupport` | Enable async query data support for Athena | Yes |
|
||||||
| `nestedFolderPicker` | Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle | Yes |
|
| `nestedFolderPicker` | Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle | Yes |
|
||||||
| `disablePrometheusExemplarSampling` | Disable Prometheus exemplar sampling | |
|
|
||||||
| `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes |
|
| `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | Yes |
|
||||||
| `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes |
|
| `lokiQuerySplitting` | Split large interval queries into subqueries with smaller time intervals | Yes |
|
||||||
| `prometheusMetricEncyclopedia` | Adds the metrics explorer component to the Prometheus query builder as an option in metric select | Yes |
|
| `prometheusMetricEncyclopedia` | Adds the metrics explorer component to the Prometheus query builder as an option in metric select | Yes |
|
||||||
|
@ -53,7 +53,6 @@ export interface FeatureToggles {
|
|||||||
accessControlOnCall?: boolean;
|
accessControlOnCall?: boolean;
|
||||||
nestedFolders?: boolean;
|
nestedFolders?: boolean;
|
||||||
nestedFolderPicker?: boolean;
|
nestedFolderPicker?: boolean;
|
||||||
disablePrometheusExemplarSampling?: boolean;
|
|
||||||
alertingBacktesting?: boolean;
|
alertingBacktesting?: boolean;
|
||||||
editPanelCSVDragAndDrop?: boolean;
|
editPanelCSVDragAndDrop?: boolean;
|
||||||
alertingNoNormalState?: boolean;
|
alertingNoNormalState?: boolean;
|
||||||
|
@ -303,14 +303,6 @@ var (
|
|||||||
AllowSelfServe: true,
|
AllowSelfServe: true,
|
||||||
Created: time.Date(2023, time.July, 24, 12, 0, 0, 0, time.UTC),
|
Created: time.Date(2023, time.July, 24, 12, 0, 0, 0, time.UTC),
|
||||||
},
|
},
|
||||||
{
|
|
||||||
Name: "disablePrometheusExemplarSampling",
|
|
||||||
Description: "Disable Prometheus exemplar sampling",
|
|
||||||
Stage: FeatureStageGeneralAvailability,
|
|
||||||
Owner: grafanaObservabilityMetricsSquad,
|
|
||||||
AllowSelfServe: true,
|
|
||||||
Created: time.Date(2022, time.December, 19, 12, 0, 0, 0, time.UTC),
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
Name: "alertingBacktesting",
|
Name: "alertingBacktesting",
|
||||||
Description: "Rule backtesting API for alerting",
|
Description: "Rule backtesting API for alerting",
|
||||||
|
@ -34,7 +34,6 @@ mysqlAnsiQuotes,experimental,@grafana/backend-platform,2022-10-12,false,false,fa
|
|||||||
accessControlOnCall,preview,@grafana/identity-access-team,2022-10-19,false,false,false
|
accessControlOnCall,preview,@grafana/identity-access-team,2022-10-19,false,false,false
|
||||||
nestedFolders,preview,@grafana/backend-platform,2022-10-22,false,false,false
|
nestedFolders,preview,@grafana/backend-platform,2022-10-22,false,false,false
|
||||||
nestedFolderPicker,GA,@grafana/grafana-frontend-platform,2023-07-24,false,false,true
|
nestedFolderPicker,GA,@grafana/grafana-frontend-platform,2023-07-24,false,false,true
|
||||||
disablePrometheusExemplarSampling,GA,@grafana/observability-metrics,2022-12-19,false,false,false
|
|
||||||
alertingBacktesting,experimental,@grafana/alerting-squad,2022-10-20,false,false,false
|
alertingBacktesting,experimental,@grafana/alerting-squad,2022-10-20,false,false,false
|
||||||
editPanelCSVDragAndDrop,experimental,@grafana/grafana-bi-squad,2022-12-20,false,false,true
|
editPanelCSVDragAndDrop,experimental,@grafana/grafana-bi-squad,2022-12-20,false,false,true
|
||||||
alertingNoNormalState,preview,@grafana/alerting-squad,2023-01-14,false,false,false
|
alertingNoNormalState,preview,@grafana/alerting-squad,2023-01-14,false,false,false
|
||||||
|
|
@ -147,10 +147,6 @@ const (
|
|||||||
// Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle
|
// Enables the new folder picker to work with nested folders. Requires the nestedFolders feature toggle
|
||||||
FlagNestedFolderPicker = "nestedFolderPicker"
|
FlagNestedFolderPicker = "nestedFolderPicker"
|
||||||
|
|
||||||
// FlagDisablePrometheusExemplarSampling
|
|
||||||
// Disable Prometheus exemplar sampling
|
|
||||||
FlagDisablePrometheusExemplarSampling = "disablePrometheusExemplarSampling"
|
|
||||||
|
|
||||||
// FlagAlertingBacktesting
|
// FlagAlertingBacktesting
|
||||||
// Rule backtesting API for alerting
|
// Rule backtesting API for alerting
|
||||||
FlagAlertingBacktesting = "alertingBacktesting"
|
FlagAlertingBacktesting = "alertingBacktesting"
|
||||||
|
@ -75,10 +75,6 @@ func New(
|
|||||||
// standard deviation sampler is the default for backwards compatibility
|
// standard deviation sampler is the default for backwards compatibility
|
||||||
exemplarSampler := exemplar.NewStandardDeviationSampler
|
exemplarSampler := exemplar.NewStandardDeviationSampler
|
||||||
|
|
||||||
if features.IsEnabledGlobally(featuremgmt.FlagDisablePrometheusExemplarSampling) {
|
|
||||||
exemplarSampler = exemplar.NewNoOpSampler
|
|
||||||
}
|
|
||||||
|
|
||||||
return &QueryData{
|
return &QueryData{
|
||||||
intervalCalculator: intervalv2.NewCalculator(),
|
intervalCalculator: intervalv2.NewCalculator(),
|
||||||
tracer: tracing.DefaultTracer(),
|
tracer: tracing.DefaultTracer(),
|
||||||
@ -87,8 +83,8 @@ func New(
|
|||||||
TimeInterval: timeInterval,
|
TimeInterval: timeInterval,
|
||||||
ID: settings.ID,
|
ID: settings.ID,
|
||||||
URL: settings.URL,
|
URL: settings.URL,
|
||||||
enableDataplane: features.IsEnabledGlobally(featuremgmt.FlagPrometheusDataplane),
|
|
||||||
exemplarSampler: exemplarSampler,
|
exemplarSampler: exemplarSampler,
|
||||||
|
enableDataplane: features.IsEnabledGlobally(featuremgmt.FlagPrometheusDataplane),
|
||||||
enableScope: features.IsEnabledGlobally(featuremgmt.FlagPromQLScope),
|
enableScope: features.IsEnabledGlobally(featuremgmt.FlagPromQLScope),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user