ui(alerting): show correct tooltip when label search includes spaces (#113038)

This commit is contained in:
Pepe Cano
2025-10-31 10:56:56 +01:00
committed by GitHub
parent 0a8d15dcac
commit 7648eac654
2 changed files with 8 additions and 2 deletions
@@ -368,7 +368,10 @@ function SearchQueryHelp() {
/>
<HelpRow title={t('alerting.search-query-help.title-group', 'Group')} expr="group:cpu-usage" />
<HelpRow title={t('alerting.search-query-help.title-rule', 'Rule')} expr='rule:"cpu 80%"' />
<HelpRow title={t('alerting.search-query-help.title-labels', 'Labels')} expr="label:team=A label:cluster=a1" />
<HelpRow
title={t('alerting.search-query-help.title-labels', 'Labels')}
expr='label:team=A label:"cluster=new york"'
/>
<HelpRow title={t('alerting.search-query-help.title-state', 'State')} expr="state:firing|normal|pending" />
<HelpRow title={t('alerting.search-query-help.title-type', 'Type')} expr="type:alerting|recording" />
<HelpRow title={t('alerting.search-query-help.title-health', 'Health')} expr="health:ok|nodata|error" />
@@ -729,7 +729,10 @@ function SearchQueryHelp() {
/>
<HelpRow title={t('alerting.search-query-help.title-group', 'Group')} expr="group:cpu-usage" />
<HelpRow title={t('alerting.search-query-help.title-rule', 'Rule')} expr='rule:"cpu 80%"' />
<HelpRow title={t('alerting.search-query-help.title-labels', 'Labels')} expr="label:team=A label:cluster=a1" />
<HelpRow
title={t('alerting.search-query-help.title-labels', 'Labels')}
expr='label:team=A label:"cluster=new york"'
/>
<HelpRow title={t('alerting.search-query-help.title-state', 'State')} expr="state:firing|normal|pending" />
<HelpRow title={t('alerting.search-query-help.title-type', 'Type')} expr="type:alerting|recording" />
<HelpRow title={t('alerting.search-query-help.title-health', 'Health')} expr="health:ok|nodata|error" />