Update metrics address copy (#3079)

This commit is contained in:
Alex Fornuto 2022-03-10 12:34:37 -06:00 committed by GitHub
parent 2bd0fb754c
commit 5867b50d0a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,13 +14,15 @@ For production deployments, we suggest using a dedicated Prometheus instance.
## Prepare Pomerium
1. In the Pomerium `config.yaml`, define the `metrics_address` key to a network interface and/or port. For example:
1. In the Pomerium `config.yaml`, define the [`metrics_address`](/reference/readme.md#metrics-address) key to a network interface and/or port. For example:
```yaml
metrics_address: 0.0.0.0:9999
metrics_address: 192.0.2.31:9999
```
The example above has Pomerium providing metrics at port `9999` on all network interfaces.
The example above has Pomerium providing metrics at port `9999` on an IP address reachable by the Pomerium Console service.
If you're running Pomerium Enterprise in a distributed environment where the IP address is not known at the time of deployment, you can use the resolvable FQDN of the Pomerium host (`pomerium0.internal.mycompany.com`, for example), or override this key with the environment variable `METRICS_ADDRESS`. We do not recommend exposing this endpoint to public traffic as it can contain potentially sensitive information.
## External Prometheus