I want to send metrics to a Prometheus instance where the client is behind a firewall. So I am using push-proxy on the client (--metrics-addr=":9101", --proxy-url=http://xxx:8082) and the machine running Prometheus (port 8082, --web.listen-address=":8082"). On the client there is also the prometheus-node-exporter installed (running on it's default port 9100).
In prometheus.yamlon the server I do:
- job_name: push_proxy
proxy_url: http://localhost:8082/
static_configs:
- targets: ['hostname_of_client:9101']
That is all based on the manual / documentation and I Prometheus I can see the push proxy client status. But how to tell the push-proxy client to grep the information from the node exporter? With --metrics-addr=":9100" I got address already in use error. And most important: How to use a second exporter (like nftables_exporter) on the client? Can --metrics-addr be some kind of list? --metrics-addr=":9101,:9102" results in too many colons in address.