Revert style change to legend items
This commit is contained in:
parent
442a6d2b11
commit
72bd585485
|
@ -54,13 +54,3 @@ svg {
|
|||
height: 10px;
|
||||
margin: 2px 2px 0 8px;
|
||||
}
|
||||
|
||||
.legend.rickshaw_legend {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
.legend.rickshaw_legend .line {
|
||||
padding-bottom: 10px;
|
||||
clear: none;
|
||||
float: left;
|
||||
}
|
||||
|
|
|
@ -299,7 +299,15 @@ Prometheus.Graph.prototype.renderLabels = function(labels) {
|
|||
}
|
||||
|
||||
Prometheus.Graph.prototype.metricToTsName = function(labels) {
|
||||
return labels["name"] + "<br>" + this.renderLabels(labels);
|
||||
var tsName = labels["name"] + "{";
|
||||
var labelStrings = [];
|
||||
for (label in labels) {
|
||||
if (label != "name") {
|
||||
labelStrings.push(label + "='" + labels[label] + "'");
|
||||
}
|
||||
}
|
||||
tsName += labelStrings.join(",") + "}";
|
||||
return tsName;
|
||||
};
|
||||
|
||||
Prometheus.Graph.prototype.parseValue = function(value) {
|
||||
|
|
Loading…
Reference in New Issue