You can use the CstatsExporter to retrieve the Windows container metrics in two ways. Perform the following actions to retrieve the metrics information.
Procedure
- ♦ Deploy directly as docker container on each Windows node using docker image in harbor.
- Use Secure Shell (SSH) to access the Windows node and run the following command
Run >> docker run --rm -p 9030:9030 -v \\.\pipe\docker_engine:\\.\pipe\docker_engine projects.registry.vmware.com/vrops_metric_exporters/cstatsexporter@sha256:1547a44857612c616ab14cde945326ffb9497abd5541737ff7fd4f3e2af83226
- If you want to deploy as a docker container on port 9030, add 9030 port in prometheus.yml.
- Use Secure Shell (SSH) to access the Windows node and run the following command