How to get Prometheus to listen on a subset of the interfaces on a machine

So it appears that, to restrict prometheus server to listening on -one- interface on a multi-homed host, I have to use

 --web.listen-address=<ip addr>:<port>

Is there a way to provide more than one ip address to listen on? The machine in question has 4 ip addresses, but I only want Prometheus server to listen on two of these.

Thanks in advance.

Hello,

Welcome to the Prometheus forums!

This is not possible. You would need to pick one interface or use a firewall like nftables/iptables.

regards