---
title: "Configure Grafana Alloy to use the Windows integration | Grafana Labs"
description: "Learn to configure the Windows integration in Grafana Cloud"
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Configure Grafana Alloy to use the Windows integration

After you’ve installed Grafana Alloy, the next step is to configure it for the Windows integration. This configuration process requires you to copy a code snippet from Grafana Cloud and add it to the Alloy configuration file.

> **Did you know?** By default, the integration only collects the metrics and logs necessary to populate the Windows dashboards and alerts. Although you have the option to configure Alloy to collect all available metrics and logs, we recommend starting with the default configuration.

To configure Alloy to use the Windows integration, complete the following steps:

1. In Grafana Cloud, under the **Set up Grafana Alloy to use the Windows integration** section, click **Copy to clipboard**.
2. On your Windows system, open Command Prompt as Administrator.
3. Open the Alloy configuration file with Notepad:
   
   cmd ![Copy code to clipboard](/media/images/icons/icon-copy-small-2.svg) Copy
   
   ```cmd
   notepad "C:\Program Files\GrafanaLabs\Alloy\config.alloy"
   ```
4. Scroll to the end of the configuration file and paste the code snippet you copied from Grafana Cloud.
5. Click **File &gt; Save** to save the changes.
6. Close Notepad.

In the next step of your journey, you’ll restart Alloy and test the configuration.

* * *

### Troubleshooting

Explore the following troubleshooting topics if you need help:

- [No metrics were found for this integration](/docs/grafana-cloud/monitor-infrastructure/integrations/troubleshoot/install-troubleshooting-windows-alloy/#no-metrics-were-found-for-this-integration)
- [Alloy was not able to reach your application Prometheus metrics endpoint](/docs/grafana-cloud/monitor-infrastructure/integrations/troubleshoot/install-troubleshooting-windows-alloy/#alloy-was-not-able-to-reach-your-application-prometheus-metrics-endpoint)

* * *

### More to explore

- [Configure Grafana Alloy](/docs/alloy/latest/configure/)
- [Windows exporter collector](/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.windows)
