A Grafana frontend with an Nginx proxy to InfluxDB. Uses confd to dynamically update the configuration of Nginx.
Limits proxied requests to GET and OPTIONS methods for security reason. Still if you run this Docker in the wild, you should add a password protection to Nginx.
Example:
docker run -d -p 80:80 -e INFLUXDB_HOST=172.17.0.4:8086 -e INFLUXDB_NAME=cadvisor -d --name grafanad -p 8086:80 sybeck2k/grafana
INFLUXDB_HOST
: (default172.17.42.1:8086
) sets the influxDB host and port. Attention: use only numeric IPs - Nginx does not use /etc/hosts !INFLUXDB_NAME
: (defaulttest
) the name of the DB to useINFLUXDB_USER
: (defaultroot
) the username for InfluxDBINFLUXDB_PASS
: (defaultroot
) the password for InfuxDB