diff --git a/x-pack/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx b/x-pack/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx index 37036794b5908..df690acd38170 100644 --- a/x-pack/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx +++ b/x-pack/plugins/observability/public/components/custom_threshold/components/alert_details_app_section/alert_details_app_section.tsx @@ -130,6 +130,12 @@ export default function AlertDetailsAppSection({ const groups = alert.fields[ALERT_GROUP]; const tags = alert.fields[TAGS]; + const chartTitleAndTooltip: Array<{ title: string; tooltip: string }> = []; + + ruleParams.criteria.forEach((criterion) => { + chartTitleAndTooltip.push(generateChartTitle(criterion)); + }); + const alertStartAnnotation: PointInTimeEventAnnotationConfig = { label: 'Alert', type: 'manual', @@ -223,11 +229,9 @@ export default function AlertDetailsAppSection({ {ruleParams.criteria.map((criterion, index) => ( - + -

- {generateChartTitle(criterion).title} -

+

{chartTitleAndTooltip[index].title}