Commit ebba6fca authored by Jérome Perrin's avatar Jérome Perrin

grafana: make influxdb listen on local ip for RPC protocol


This should not be reachable from outside because it can be used to pull
a backup.
Because we usually have reachable ipv6 and local only ipv4, make it
ipv4 and add a note in README because this is not always true.

Also make ports use explicit names in profile and fix promise that
should check http-port and not rpc-port
parent 3665350d
......@@ -26,6 +26,14 @@ browser query influxdb directly, which also uses a self signed certificate.
One workaround is to configure your browser to also accept influxdb certificate
before using grafana, but using proxy seems easier.
## Influxdb
Influxdb backups are not done automatically by this software release.
One important thing to notice is that the backup protocol is enabled on ipv4
provided by slapos, so make sure this ip is not reachable from untrusted
* influxdb and telegraf runs with very low priority, this could become an option
......@@ -16,11 +16,11 @@
filename =
md5sum = 3991cc23a43da437a12c5af0edb1de9f
md5sum = 7fb6806b139b3a8d0054308397be1dd9
filename =
md5sum = 3867923a2798517bc72c265066317843
md5sum = 7ce85159c0664b251e249eac4b37bea4
filename =
reporting-disabled = false
bind-address = "[{{ influxdb['host'] }}]:{{ influxdb['port'] }}"
bind-address = "[{{ influxdb['local-host'] }}]:{{ influxdb['rpc-port'] }}"
dir = "{{ influxdb['data-dir'] }}/meta"
......@@ -77,8 +77,10 @@ path = ${directory:promise}/${:_buildout_section_name_}
ipv6 = ${instance-parameter:ipv6-random}
ipv4 = ${instance-parameter:ipv4-random}
host = ${:ipv6}
port = 8088
local-host = ${:ipv4}
rpc-port = 8088
http-port = 8086
url = https://[${:host}]:${:http-port}
data-dir = ${directory:influxdb-data-dir}
......@@ -108,8 +110,8 @@ username = influxdb
<= check-port-listening-promise
hostname= ${influxdb:ipv6}
port = ${influxdb:port}
hostname = ${influxdb:ipv6}
port = ${influxdb:http-port}
recipe = slapos.cookbook:wrapper
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment