MT#8215 Set NGCP-Summary.json as default Kibana page

ipeshinskaya/InvoiceTemplate6
Alexander Lutay 11 years ago
parent 66e8536f55
commit 643cf6d9da

@ -30,9 +30,11 @@ sub static :Chained('root') :PathPart('') :Args() {
$c->forward($c->view('TT'));
if($path eq "kibana/config.js") {
my $defp = '/dashboard/file/NGCP-Summary.json';
my $eurl = $c->uri_for_action('/log/elastic')->as_string;
my $body = $c->res->body;
$body =~ s/(\s*elasticsearch:\s*)"[^,]+"/$1"$eurl"/g;
$body =~ s/(\s*default_route\s*:\s*)'[^,]+'/$1'$defp'/g;
$c->res->body($body);
}
}

Loading…
Cancel
Save