mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
DataLinks: Fix access to labels when using Prometheus instant queries (#20113)
This commit is contained in:
committed by
Ryan McKinley
parent
428267b924
commit
fe584efc70
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user