|
@@ -147,9 +147,9 @@ export function alertAxisFormatter(value: number, seriesName: string, aggregate:
|
|
|
}
|
|
|
|
|
|
if (isCustomMetricAlert(aggregate)) {
|
|
|
- const {mri} = parseField(aggregate)!;
|
|
|
+ const {mri, op} = parseField(aggregate)!;
|
|
|
const {unit} = parseMRI(mri)!;
|
|
|
- return formatMetricUsingFixedUnit(value, unit);
|
|
|
+ return formatMetricUsingFixedUnit(value, unit, op);
|
|
|
}
|
|
|
|
|
|
return axisLabelFormatter(value, aggregateOutputType(seriesName));
|
|
@@ -165,9 +165,9 @@ export function alertTooltipValueFormatter(
|
|
|
}
|
|
|
|
|
|
if (isCustomMetricAlert(aggregate)) {
|
|
|
- const {mri} = parseField(aggregate)!;
|
|
|
+ const {mri, op} = parseField(aggregate)!;
|
|
|
const {unit} = parseMRI(mri)!;
|
|
|
- return formatMetricUsingFixedUnit(value, unit);
|
|
|
+ return formatMetricUsingFixedUnit(value, unit, op);
|
|
|
}
|
|
|
|
|
|
return tooltipFormatter(value, aggregateOutputType(seriesName));
|