diff --git a/x-pack/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx b/x-pack/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx index b754e8fc76673..d01f1f0a45dea 100644 --- a/x-pack/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/rule_types/error_count_rule_type/index.tsx @@ -162,14 +162,16 @@ export function ErrorCountRuleType(props: Props) { />, ]; - const chartPreview = ( + // hide preview chart until https://github.com/elastic/kibana/pull/156625 gets merged + const showChartPreview = false; + const chartPreview = showChartPreview ? ( - ); + ) : null; const groupAlertsBy = ( <> diff --git a/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx b/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx index 3e1108bc7685e..9d51adfeebc05 100644 --- a/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_duration_rule_type/index.tsx @@ -147,14 +147,16 @@ export function TransactionDurationRuleType(props: Props) { // The threshold from the form is in ms. Convert to µs. const thresholdMs = params.threshold * 1000; - const chartPreview = ( + // hide preview chart until https://github.com/elastic/kibana/pull/156625 gets merged + const showChartPreview = false; + const chartPreview = showChartPreview ? ( - ); + ) : null; const onGroupByChange = useCallback( (group: string[] | null) => { diff --git a/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx b/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx index e115043353b1f..e7d45114c1f8f 100644 --- a/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx +++ b/x-pack/plugins/apm/public/components/alerting/rule_types/transaction_error_rate_rule_type/index.tsx @@ -171,14 +171,16 @@ export function TransactionErrorRateRuleType(props: Props) { />, ]; - const chartPreview = ( + // hide preview chart until https://github.com/elastic/kibana/pull/156625 gets merged + const showChartPreview = false; + const chartPreview = showChartPreview ? ( asPercent(d, 1)} threshold={thresholdAsPercent} uiSettings={services.uiSettings} /> - ); + ) : null; const groupAlertsBy = ( <>