Logs: Remove logsSampleInExplore feature toggle (#72092)

* Logs: Remove logsSampleInExplore feature toggle

* Remove unused import

* Fix incorrect import
This commit is contained in:
Ivana Huckova 2023-07-24 14:24:43 +02:00 committed by GitHub
parent 5cd1541aee
commit 5bb280cb3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1 additions and 19 deletions

View File

@ -32,7 +32,6 @@ Some features are enabled by default. You can disable these feature by setting t
| `accessTokenExpirationCheck` | Enable OAuth access_token expiration check and token refresh using the refresh_token | |
| `emptyDashboardPage` | Enable the redesigned user interface of a dashboard page that includes no panels | Yes |
| `disablePrometheusExemplarSampling` | Disable Prometheus exemplar sampling | |
| `logsSampleInExplore` | Enables access to the logs sample feature in Explore | Yes |
| `logsContextDatasourceUi` | Allow datasource to provide custom UI for context view | 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 |

View File

@ -60,7 +60,6 @@ export interface FeatureToggles {
alertingBacktesting?: boolean;
editPanelCSVDragAndDrop?: boolean;
alertingNoNormalState?: boolean;
logsSampleInExplore?: boolean;
logsContextDatasourceUi?: boolean;
lokiQuerySplitting?: boolean;
lokiQuerySplittingConfig?: boolean;

View File

@ -285,15 +285,6 @@ var (
RequiresRestart: false,
Owner: grafanaAlertingSquad,
},
{
Name: "logsSampleInExplore",
Description: "Enables access to the logs sample feature in Explore",
Stage: FeatureStageGeneralAvailability,
Expression: "true", // turned on by default
FrontendOnly: true,
Owner: grafanaObservabilityLogsSquad,
},
{
Name: "logsContextDatasourceUi",
Description: "Allow datasource to provide custom UI for context view",

View File

@ -41,7 +41,6 @@ disablePrometheusExemplarSampling,GA,@grafana/observability-metrics,false,false,
alertingBacktesting,experimental,@grafana/alerting-squad,false,false,false,false
editPanelCSVDragAndDrop,experimental,@grafana/grafana-bi-squad,false,false,false,true
alertingNoNormalState,preview,@grafana/alerting-squad,false,false,false,false
logsSampleInExplore,GA,@grafana/observability-logs,false,false,false,true
logsContextDatasourceUi,GA,@grafana/observability-logs,false,false,false,true
lokiQuerySplitting,GA,@grafana/observability-logs,false,false,false,true
lokiQuerySplittingConfig,experimental,@grafana/observability-logs,false,false,false,true

1 Name Stage Owner requiresDevMode RequiresLicense RequiresRestart FrontendOnly
41 alertingBacktesting experimental @grafana/alerting-squad false false false false
42 editPanelCSVDragAndDrop experimental @grafana/grafana-bi-squad false false false true
43 alertingNoNormalState preview @grafana/alerting-squad false false false false
logsSampleInExplore GA @grafana/observability-logs false false false true
44 logsContextDatasourceUi GA @grafana/observability-logs false false false true
45 lokiQuerySplitting GA @grafana/observability-logs false false false true
46 lokiQuerySplittingConfig experimental @grafana/observability-logs false false false true

View File

@ -175,10 +175,6 @@ const (
// Stop maintaining state of alerts that are not firing
FlagAlertingNoNormalState = "alertingNoNormalState"
// FlagLogsSampleInExplore
// Enables access to the logs sample feature in Explore
FlagLogsSampleInExplore = "logsSampleInExplore"
// FlagLogsContextDatasourceUi
// Allow datasource to provide custom UI for context view
FlagLogsContextDatasourceUi = "logsContextDatasourceUi"

View File

@ -559,9 +559,7 @@ export class Explore extends React.PureComponent<Props, ExploreState> {
{showNodeGraph && <ErrorBoundaryAlert>{this.renderNodeGraphPanel()}</ErrorBoundaryAlert>}
{showFlameGraph && <ErrorBoundaryAlert>{this.renderFlameGraphPanel()}</ErrorBoundaryAlert>}
{showTrace && <ErrorBoundaryAlert>{this.renderTraceViewPanel()}</ErrorBoundaryAlert>}
{config.featureToggles.logsSampleInExplore && showLogsSample && (
<ErrorBoundaryAlert>{this.renderLogsSamplePanel()}</ErrorBoundaryAlert>
)}
{showLogsSample && <ErrorBoundaryAlert>{this.renderLogsSamplePanel()}</ErrorBoundaryAlert>}
{showCustom && <ErrorBoundaryAlert>{this.renderCustom(width)}</ErrorBoundaryAlert>}
{showNoData && <ErrorBoundaryAlert>{this.renderNoData()}</ErrorBoundaryAlert>}
</>