To add the cstats exporter to the prometheus.yml file, perform the following actions.
- 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.