mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(prometheus) when tag value duplicate, tags not working. (#8040)
This commit is contained in:
committed by
Torkel Ödegaard
parent
b16b649c9b
commit
bbfdfc012f
@@ -59,9 +59,13 @@ function (_) {
|
|||||||
|
|
||||||
return this.datasource._request('GET', url)
|
return this.datasource._request('GET', url)
|
||||||
.then(function(result) {
|
.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 {
|
return {
|
||||||
text: metric[label],
|
text: metric,
|
||||||
expandable: true
|
expandable: true
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user