DataLinks: Fix access to labels when using Prometheus instant queries (#20113)

This commit is contained in:
Jacob Colvin
2019-11-01 11:33:04 -04:00
committed by Ryan McKinley
parent 428267b924
commit fe584efc70

View File

@@ -141,7 +141,7 @@ export class ResultTransformer {
let metricLabel = null;
metricLabel = this.createMetricLabel(md.metric, options);
dps.push([parseFloat(md.value[1]), md.value[0] * 1000]);
return { target: metricLabel, datapoints: dps, labels: md.metric };
return { target: metricLabel, datapoints: dps, tags: md.metric };
}
createMetricLabel(labelData: { [key: string]: string }, options: any) {