We are trying to setup a Windows server with Prometheus to monitor a Linux server. We installed the Node exporter on the Linux server and opened port 9100 on this server to the Windows server with Prometheus.
What do we need to install on the Windows server with Prometheus to get this to communicate with the Linux server and to be able to scrape metrics from the Linux server?
You need to install & run Prometheus on the Windows server with configuration to scrape the Linux server. It would also be a good idea to install the Windows exporter on the Windows server and add that, plus the Prometheus server itself, to the scrape configuration.
We do have Prometheus installed and running on the Windows server, and we have added the Linux server IP:9100 to the prometheus.yml configuration file. We have the WMI exporter installed on the Windows server.
We added the Node exporter to the Linux server.
The Prometheus server is giving the following errors:
Get “http://xx.xxx.xxx.x:9100/metrics”: dial tcp xx.xxx.xxx.x:9100: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.