On 4/21/21 1:25 PM, Martin Willisegger wrote:
Hello all
One of my servers has an internal and an external ip address. The hostname belongs to the external address, while the prometheus server should connect to the internal address.
myserver.domain.com -> 10.0.0.1 external example myserver.domain -> 192.168.0.1 internal example Hostname defined in Uyuni = myserver.domain.com IP Address defined in Uyuni = 192.168.0.1
The server has only one ip - the external ip ends on the firewall (NAT) and is forwarded to the internal ip.
When I activate the prometheus node exporter formula on this server, the prometheus server tries to connect the external ip with this error:
Get "http://myserver.domain.com:9100/metrics": dial tcp 10.0.0.1:9100: connect: connection refused
What can I do to change the connection string to:
http://myserver.domain:9100/metrics or http://192.168.0.1:9100/metrics
that is accessible from the prometheus server?
Hi Martin, please try setting the primary FQDN in `System > Details > Hardware > Networking`. The feature is being released in Uyuni 2021.04 (released but not announced yet). Hope it helps. Witek