To add the cStatsExporter to the prometheus.yml file, perform the following actions.
Procedure
- Add following job configuration to the prometheus.yml.
- job_name: 'cstatsExporter'
static_configs:
- targets: ['Node IP where cstats is running:9030' ]
proxy_url: 'http://ProxyIP'
- Restart the service
service prometheus restart
.
- Add jobs in the prometheus.yml file for each Windows node or multiple NodeIP: Port for cStats can be added in the targets array.