diff --git a/src/hooks/useExpressionsProcessor.ts b/src/hooks/useExpressionsProcessor.ts index e6889922..b4b54598 100644 --- a/src/hooks/useExpressionsProcessor.ts +++ b/src/hooks/useExpressionsProcessor.ts @@ -130,7 +130,7 @@ export async function useDashboardQueryProcessor(configList: Indexable[]) { item.metric.labels.map((d: { key: string; value: string }) => `${d.key}=${d.value}`).join(","); const values = item.values.map((d: { value: unknown }) => d.value) || []; if (results.length === 1) { - // If the label does not exist use the configuration label or expression + // If the metrics label does not exist, use the configuration label or expression label = label ? `${metricConfig.label || name}, ${label}` : metricConfig.label || name; } source[label] = values;