TT#2399 Add grafana service config

This moves the hard-coded configuration from the code into a proper
section in the config file.

Change-Id: I895fe27e404e7bdbf6127ff86c661e9d72d419a2
changes/65/11065/4
Guillem Jover 9 years ago
parent 72272532dc
commit 0415bede80

@ -20,7 +20,9 @@ sub root :Chained('/') :PathPart('grafana') :CaptureArgs() {
my $path = join '/', @fullpath;
$path .= '?' . $c->req->uri->query if $c->req->uri->query;
my $url = "http://127.0.0.1:3000";
my $url = $c->config->{grafana}{schema} . '://' .
$c->config->{grafana}{host} . ':' .
$c->config->{grafana}{port};
$url .= "/".$path if length $path;
$c->log->debug("accessing grafana via ngcp-panel proxy, url is $url");

@ -63,6 +63,12 @@ log4perl.appender.Default.layout.ConversionPattern=%d{ISO8601} [%p] [%F +%L] %m{
subscriber SubscriberRegisterOverview
</dashboard>
<grafana>
schema http
host localhost
port 4000
</grafana>
<faxserver>
sendfax /usr/bin/sendfax
ip 127.0.0.1

Loading…
Cancel
Save