1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00

feat: histogram impact metric UI

This commit is contained in:
kwasniew 2025-09-24 10:41:28 +02:00
parent 63b072648a
commit 0d942411ac
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

View File

@ -48,12 +48,7 @@ export const useChartFormState = ({
Record<string, string[]>
>(initialConfig?.labelSelectors || {});
const [aggregationMode, setAggregationMode] = useState<AggregationMode>(
initialConfig?.aggregationMode ||
(getMetricType(metricName) === 'counter'
? 'count'
: getMetricType(metricName) === 'histogram'
? 'p50'
: 'avg'),
initialConfig?.aggregationMode || getDefaultAggregation(metricName),
);
const {