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

pull/20052/head
Jacob Colvin 6 years ago committed by Ryan McKinley
parent 428267b924
commit fe584efc70
  1. 2
      public/app/plugins/datasource/prometheus/result_transformer.ts

@ -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) {

Loading…
Cancel
Save