monitor_listen
Specifies the port on which the server is to listen for health check and Prometheus metrics requests.
monitor_listen=protocol://servername:port
For example:
monitor_listen = http://machine1:7220
If you are enabling TLS, for example:
monitor_listen = https://machine1:7220
When using
localhost as the
servername, the listen will only be accessible from the local machine. If you omit the
servername, the listen will behave similarly to setting
localhost in the server
listen parameter.
For example:
monitor_listen = http://:7220
You can use an IP address instead of hostname.
For example:
monitor_listen = http://192.168.10.107:7220
When specifying an IPv6 address, use square brackets around the address specification.
For example:
monitor_listen = http://[2001:cafe::107]:7220
You can use only one
monitor_listen entry at a time. For more information, see
Server Health and Metrics.