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

Procedure

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