To add the node exporter to the prometheus.yml file, perform the following actions.
Procedure
- Add following job config to prometheus.yml.
- job_name: 'node-exporter'
static_configs:
- targets: ['NodeIP:9100' ]
labels:
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.
- Restart the service:
service prometheus restart
.
- Add jobs in the prometheus.yml file for each linux node.