diff --git a/public/app/plugins/datasource/loki/result_transformer.ts b/public/app/plugins/datasource/loki/result_transformer.ts index 1f763448553..34aa2e5900b 100644 --- a/public/app/plugins/datasource/loki/result_transformer.ts +++ b/public/app/plugins/datasource/loki/result_transformer.ts @@ -290,12 +290,10 @@ export function createMetricLabel(labelData: { [key: string]: string }, options? } function getOriginalMetricName(labelData: { [key: string]: string }) { - const metricName = labelData.__name__ || ''; - delete labelData.__name__; const labelPart = Object.entries(labelData) .map((label) => `${label[0]}="${label[1]}"`) .join(','); - return `${metricName}{${labelPart}}`; + return `{${labelPart}}`; } export function decamelize(s: string): string {