Revert style change to legend items

This commit is contained in:
Bernerd Schaefer 2013-04-15 10:04:09 +02:00
parent 442a6d2b11
commit 72bd585485
2 changed files with 9 additions and 11 deletions

View File

@ -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;
}

View File

@ -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) {