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


  1. Add following job config to prometheus.yml.
    - job_name: 'cadvisor'
      - targets: ['Node IP where Cadvisor is running:31194' ]
          nodename: 'nodename'
      proxy_url: 'http://ProxyIP'

    Add the nodename label and the nodename value in labels in the prometheus.yml for vRealize Operations to recognize the node.

  2. Restart the service: service prometheus restart.
  3. Add jobs in the prometheus.yml file for each linux node or multiple NodeIP: Port for cadvisor can be added in the targets array.