mirror of
https://github.com/prometheus/prometheus.git
synced 2024-12-26 06:04:05 -08:00
Revert style change to legend items
This commit is contained in:
parent
442a6d2b11
commit
72bd585485
|
@ -54,13 +54,3 @@ svg {
|
||||||
height: 10px;
|
height: 10px;
|
||||||
margin: 2px 2px 0 8px;
|
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) {
|
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) {
|
Prometheus.Graph.prototype.parseValue = function(value) {
|
||||||
|
|
Loading…
Reference in a new issue