diff --git a/ui/src/shared/parsing/flux/parseTablesByTime.ts b/ui/src/shared/parsing/flux/parseTablesByTime.ts index 43152dc28..7724b0b1a 100644 --- a/ui/src/shared/parsing/flux/parseTablesByTime.ts +++ b/ui/src/shared/parsing/flux/parseTablesByTime.ts @@ -33,7 +33,7 @@ function fluxTableKey(table: FluxTable, columnName: string): string { } return acc }, []) - return groupKeys.length ? `${name} (${groupKeys.join(' ')})` : name + return groupKeys.length ? `${name} ${groupKeys.join(' ')}` : name } export const parseTablesByTime = ( diff --git a/ui/test/shared/parsing/flux/dygraph.test.ts b/ui/test/shared/parsing/flux/dygraph.test.ts index 73c3333ef..6c1238602 100644 --- a/ui/test/shared/parsing/flux/dygraph.test.ts +++ b/ui/test/shared/parsing/flux/dygraph.test.ts @@ -39,10 +39,10 @@ describe('fluxTablesToDygraph', () => { const expected = { labels: [ 'time', - 'mean_usage_idle[_measurement=cpu]', - 'mean_usage_user[_measurement=cpu]', - 'mean_usage_idle[_measurement=mem]', - 'mean_usage_user[_measurement=mem]', + 'mean_usage_idle measurement=cpu', + 'mean_usage_user measurement=cpu', + 'mean_usage_idle measurement=mem', + 'mean_usage_user measurement=mem', ], dygraphsData: [ [new Date('2018-09-10T16:54:37Z'), 85, 10, 8, 1], @@ -60,8 +60,8 @@ describe('fluxTablesToDygraph', () => { const expected = { labels: [ 'time', - 'mean_usage_idle[_measurement=cpu]', - 'mean_usage_idle[_measurement=mem]', + 'mean_usage_idle measurement=cpu', + 'mean_usage_idle measurement=mem', ], dygraphsData: [ [new Date('2018-09-10T16:54:37Z'), 85, 8],