---
title: "Configure the IIS integration for request and worker metrics | Grafana Labs"
description: "Learn how to configure Grafana Alloy to collect IIS request rates, error codes, and worker process metrics."
---

# Configure the IIS integration for request and worker metrics

After you’ve verified that IIS performance counters are available, the next step is to configure Grafana Alloy to collect IIS metrics. 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 collects the metrics necessary to populate the IIS dashboards and alerts, including request rates, error codes, active connections, and worker process health. You always have the option to collect additional metrics later.

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

1. In Grafana Cloud, under the **Set up Grafana Alloy to use the IIS integration** section, click **Copy to clipboard**.
2. On your Windows Server, 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.
   
   The snippet configures the `prometheus.exporter.windows` component with the IIS collector enabled, which scrapes metrics from the `Web Service` and `W3SVC_W3WP` performance counter categories.
5. Click **File &gt; Save** to save the changes, then close Notepad.

In the next step, you’ll restart Alloy and verify that metrics are flowing to Grafana Cloud.

* * *

### 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 IIS collector](/docs/alloy/latest/reference/components/prometheus/prometheus.exporter.windows/)
