To add the Telegraf exporter to the prometheus.yml file, perform the following actions.
Procedure
- 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'
- Restart the service:
service prometheus restart
.