mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-28 06:59:40 -08:00
web/js: fix display error for vectors in console
This commit is contained in:
parent
a5093e08a0
commit
9e599976c4
File diff suppressed because one or more lines are too long
|
@ -579,7 +579,7 @@ Prometheus.Graph.prototype.handleConsoleResponse = function(data, textStatus) {
|
||||||
for (var i = 0; i < data.result.length; i++) {
|
for (var i = 0; i < data.result.length; i++) {
|
||||||
var s = data.result[i];
|
var s = data.result[i];
|
||||||
var tsName = self.metricToTsName(s.metric);
|
var tsName = self.metricToTsName(s.metric);
|
||||||
tBody.append("<tr><td>" + escapeHTML(tsName) + "</td><td>" + s[1] + "</td></tr>");
|
tBody.append("<tr><td>" + escapeHTML(tsName) + "</td><td>" + s.value[1] + "</td></tr>");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case "matrix":
|
case "matrix":
|
||||||
|
|
Loading…
Reference in a new issue