To add Node Exporter in Prometheus server, you have to add your node details in prometheus.yml file. You can take reference from the below given code.
Open your prometheus.yml file and add these lines.
- job_name: 'node1'
- targets: ['Node_Exporter IP:PORT_NO']
Now your node exporter is connected with Prometheus server.