To add the node exporter to the prometheus.yml file, perform the following actions.


  1. Add following job config to prometheus.yml.
    - job_name: 'node-exporter'
      - targets: ['NodeIP:9100' ]
          nodename: 'nodename'
      proxy_url: 'http://ProxyIP'
    Note: Add the nodename label and the nodename value in labels in prometheus.yml for vRealize Operations Manager to recognize the node.
  2. Restart the service: service prometheus restart.
  3. Add jobs in the prometheus.yml file for each linux node.