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

Procedure

  1. Add following job config to prometheus.yml.
    - job_name: 'telegraf-exporter'
    static_configs:
    - targets: ['Node IP:31196' ]
    proxy_url: 'http://ProxyIP'
    - job_name: 'telegraf-win-exporter'
    static_configs:
    - targets: ['Node IP:31197' ]
    proxy_url: 'http://ProxyIP'
  2. Restart the service: service prometheus restart.