Commit bbfdfc01 by Kakuya Ando Committed by Torkel Ödegaard

fix(prometheus) when tag value duplicate, tags not working. (#8040)

parent b16b649c
......@@ -59,9 +59,13 @@ function (_) {
return this.datasource._request('GET', url)
.then(function(result) {
return _.map(result.data.data, function(metric) {
var _labels = _.map(result.data.data, function(metric) {
return metric[label];
});
return _.uniq(_labels).map(function(metric) {
return {
text: metric[label],
text: metric,
expandable: true
};
});
......
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