|
|
@ -89,7 +89,11 @@ export function Panel({ options, data, width, height, timeRange, onChangeTimeRan |
|
|
|
value = additionalInfoConfig.value.value; |
|
|
|
value = additionalInfoConfig.value.value; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (!_.isEmpty(additionalInfoConfig.value.metricName)) { |
|
|
|
if (!_.isEmpty(additionalInfoConfig.value.metricName)) { |
|
|
|
const aggregatedValue = getLastMetricValue(grafanaSeriesList, additionalInfoConfig.value.metricName, 'Additional Info'); |
|
|
|
const aggregatedValue = getLastMetricValue( |
|
|
|
|
|
|
|
grafanaSeriesList, |
|
|
|
|
|
|
|
additionalInfoConfig.value.metricName, |
|
|
|
|
|
|
|
'Additional Info' |
|
|
|
|
|
|
|
); |
|
|
|
value = aggregatedValue !== null ? aggregatedValue : undefined; |
|
|
|
value = aggregatedValue !== null ? aggregatedValue : undefined; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|