# Windows exporter prometheus.yml file

**URL:** <https://discuss.prometheus.io/t/windows-exporter-prometheus-yml-file/1779>\
**Category:** General Help/Support\
**Created:** [July 27, 2023, 7:16pm UTC](https://discuss.prometheus.io/t/windows-exporter-prometheus-yml-file/1779 "2023-07-27T19:16:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JAYSON](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@JAYSON](https://discuss.prometheus.io/u/JAYSON)\
**Post date:** [July 27, 2023, 7:16pm UTC](https://discuss.prometheus.io/t/windows-exporter-prometheus-yml-file/1779/1 "2023-07-27T19:16:35Z")

</div>

I just migrated our mostly windows infrastructure over from Graylog/Ubuntu to Rocky/Prometheus. It all seems to work fine but I cannot for the life of figure out how to scrape like 100’s of windows machines. I know my server/config works because I can scrape one windows machine just fine. Once I add more the services wont start.  
Does anyone have an example for scrape configs for this?

-job\_name: WIndows 11  
static\_configs:  
-targets: ['192.168.12.11"]

I am trying to target every IP on that certain subnet.

Am I using the wrong tool for this? I only need logon logs for PCI, CJIS compliance.

---

<div class="post-metadata">

**Author:** ![JAYSON](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@JAYSON](https://discuss.prometheus.io/u/JAYSON)\
**Post date:** [July 31, 2023, 1:55pm UTC](https://discuss.prometheus.io/t/windows-exporter-prometheus-yml-file/1779/2 "2023-07-31T13:55:35Z")

</div>

I figured it out using this:

> **[Windows and Linux Server Monitoring using Prometheus and Grafana](https://www.fosstechnix.com/windows-and-linux-server-monitoring-using-prometheus-and-grafana/)**
>
> Install Prometheus and Grafana on Ubuntu 20.04 with Node Exporter and WMI Exporter Windows and Linux Server Monitoring using Prometheus and Grafana
