Commit fe584efc by Jacob Colvin Committed by Ryan McKinley

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

parent 428267b9
...@@ -141,7 +141,7 @@ export class ResultTransformer { ...@@ -141,7 +141,7 @@ export class ResultTransformer {
let metricLabel = null; let metricLabel = null;
metricLabel = this.createMetricLabel(md.metric, options); metricLabel = this.createMetricLabel(md.metric, options);
dps.push([parseFloat(md.value[1]), md.value[0] * 1000]); 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) { createMetricLabel(labelData: { [key: string]: string }, options: any) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment