Skip to content
Snippets Groups Projects
Commit abdc1967 authored by Nikolay Stanchev's avatar Nikolay Stanchev
Browse files

Updates nginx.conf and tick stack installation to expose chronograf

parent 7723a033
No related branches found
No related tags found
No related merge requests found
......@@ -346,6 +346,10 @@ configuration files of the service can be found in the **src/service** folder.
}
```
* Generating network measurements
To generate network measurements, which are then used to create the network topology in the Neo4j graph, refer to
the src/service/clmcservice/generate_network_measurements.py script. An example configuration file is src/service/resources/GraphAPI/network_config.json
## CRUD API for service function endpoint configurations
......
......@@ -45,9 +45,13 @@ if [ $? == 1 ]; then
fi
dpkg -i chronograf_${CHRONOGRAF_VERSION}_amd64.deb
# configure Chronograf systemd service file
sed -i 's/^ExecStart.*/ExecStart=\/usr\/bin\/chronograf --basepath=\/chronograf --prefix-routes $CHRONOGRAF_OPTS/' /lib/systemd/system/chronograf.service
systemctl daemon-reload
systemctl start influxdb
systemctl start kapacitor
systemctl start chronograf
systemctl restart chronograf
# wait for kapacitor to start
while ! nc -z localhost 9092
......
......@@ -55,5 +55,13 @@ http {
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
location /chronograf {
proxy_pass http://127.0.0.1:8888; # No trailing slash - chronograf is configured to include /chronograf in its routes
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
}
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment