mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Binary-prefixed data rates (#27022)
* Dashboard: Merge Data units categories Prefixes already allow to distinguish IEC units from SI ones + Prefer using binary function over decimal one when equal * Dashboard: Clarify SI & binary prefixes * Dashboard: Homogeneise rate units * Dashboard: Add Binary (IEC) prefix for data rates
This commit is contained in:
@@ -33,7 +33,7 @@ import {
|
||||
import { getThemeColor } from 'app/core/utils/colors';
|
||||
|
||||
import { deduplicateLogRowsById } from 'app/core/utils/explore';
|
||||
import { decimalSIPrefix } from '@grafana/data/src/valueFormats/symbolFormatters';
|
||||
import { SIPrefix } from '@grafana/data/src/valueFormats/symbolFormatters';
|
||||
|
||||
export const LogLevelColor = {
|
||||
[LogLevel.critical]: colors[7],
|
||||
@@ -437,7 +437,7 @@ export function logSeriesToLogsModel(logSeries: DataFrame[]): LogsModel | undefi
|
||||
}
|
||||
|
||||
if (totalBytes > 0) {
|
||||
const { text, suffix } = decimalSIPrefix('B')(totalBytes);
|
||||
const { text, suffix } = SIPrefix('B')(totalBytes);
|
||||
meta.push({
|
||||
label: 'Total bytes processed',
|
||||
value: `${text} ${suffix}`,
|
||||
|
||||
Reference in New Issue
Block a user