python
python copied to clipboard
metrics: add option `metrics.addr` for ipv6 support
prometheus_client supports IPv6 addresses for a while now[1]. This isn't used here however because the default 0.0.0.0 is used. Added an option metrics.addr that makes this configurable.
Tested with mautrix-telegram.
[1] https://github.com/prometheus/client_python/commit/39d2360322262947adae1908d0972fba12ff8ed1
cc @tulir :)