mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add one graph to page even when no graphs specified in URL.
This commit is contained in:
parent
f47dfc458c
commit
893eebe77c
|
@ -327,6 +327,9 @@ function init() {
|
|||
});
|
||||
|
||||
var options = parseGraphOptionsFromUrl();
|
||||
if (options.length == 0) {
|
||||
options.push({});
|
||||
}
|
||||
for (var i = 0; i < options.length; i++) {
|
||||
addGraph(options[i]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue