Update index.md to describe leaving out the host in prometheus['listen_address'] to allow public access.

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Nathan Jones 2017-07-10 23:33:08 +00:00 committed by Rémy Coutable
parent 38bf192224
commit 33c163b347
No known key found for this signature in database
GPG Key ID: 98DFFD1C0C62B70B
1 changed files with 8 additions and 1 deletions

View File

@ -62,7 +62,14 @@ To change the address/port that Prometheus listens on:
```
Replace `localhost:9090` with the address/port you want Prometheus to
listen on.
listen on. If you would like to allow access to Prometheus to hosts other
than `localhost`, leave out the host, or use `0.0.0.0` to allow public access:
```ruby
prometheus['listen_address'] = ':9090'
# or
prometheus['listen_address'] = '0.0.0.0:9090'
```
1. Save the file and [reconfigure GitLab][reconfigure] for the changes to
take effect