mirror of
https://github.com/prometheus/prometheus
synced 2025-01-14 10:52:10 +00: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();
|
var options = parseGraphOptionsFromUrl();
|
||||||
|
if (options.length == 0) {
|
||||||
|
options.push({});
|
||||||
|
}
|
||||||
for (var i = 0; i < options.length; i++) {
|
for (var i = 0; i < options.length; i++) {
|
||||||
addGraph(options[i]);
|
addGraph(options[i]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user