To add the cadvisor exporter to the prometheus.yml file, perform the following actions.
- Add following job config to prometheus.yml.
- job_name: 'cadvisor' static_configs: - targets: ['Node IP where Cadvisor is running:31194' ] labels: nodename: 'nodename' proxy_url: 'http://ProxyIP'Note: Add the nodename label and the nodename value in labels in the prometheus.yml for vRealize Operations to recognize the node.
- Restart the service:
service prometheus restart.
- Add jobs in the prometheus.yml file for each linux node or multiple NodeIP: Port for cadvisor can be added in the targets array.