Docs: Add unauthenticated metrics access docs (#7566)

This commit is contained in:
Michel Vocks 2019-10-07 17:54:09 +02:00 committed by Chris Hoffman
parent a2b70c7bc7
commit f8c233a63b
1 changed files with 17 additions and 0 deletions

View File

@ -140,6 +140,11 @@ advertise the correct address to other nodes.
there is no X-Forwarded-For header or it is empty, the client address will be
used as-is, rather than the client connection rejected.
### `telemetry` Parameters
- `unauthenticated_metrics_access` `(string: "false")` - If set to true, allows
unauthenticated access to the `/v1/sys/metrics` endpoint.
## `tcp` Listener Examples
### Configuring TLS
@ -171,6 +176,18 @@ api_addr = "https://10.0.0.5:8200"
cluster_addr = "https://10.0.0.5:8201"
```
### Configuring unauthenticated metrics access
This example shows enabling unauthenticated metrics access.
```hcl
listener "tcp" {
telemetry {
unauthenticated_metrics_access = true
}
}
```
[golang-tls]: https://golang.org/src/crypto/tls/cipher_suites.go
[api-addr]: /docs/configuration/index.html#api_addr
[cluster-addr]: /docs/configuration/index.html#cluster_addr