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

This commit is contained in:
Jacob Colvin authored and Ryan McKinley committed 2019-11-01 08:33:04 -07:00
1 parent 428267b924
commit fe584efc70
1 file changed
+1 -1
@@ -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) {