# Capacity Metrics

The Mapping **Capacity Metrics** screen brings together the **three scans** that feed the Capacity Dashboard and the consumption screens: the **capacity list** (read through the Admin API), the **Capacity Units (CU) consumption** per capacity and the **daily operations per item**. The last two are read from the **Microsoft Fabric Capacity Metrics App** installed in your tenant. Here you see the last run of each scan and can trigger any of them right away.

**How to access:** *Mapping › Capacity and cost › Capacity Metrics*. Only **Administrators** can access the screen and the actions.

<figure><picture><source srcset="../../assets/pm-mapeamento-metricas-capacidade-en-dark.png" media="(prefers-color-scheme: dark)"><img src="../../assets/pm-mapeamento-metricas-capacidade-en.png" alt="Capacity Metrics screen with the What is collected and Scans in this collection cards with the Capacity, Capacity Consumption and Item Operation rows"></picture><figcaption><p>Capacity Metrics</p></figcaption></figure>

## What it is for

* Confirm that Capacity Units consumption is being collected and that the Capacity Dashboard is up to date.
* Force a collection after configuring the Capacity Metrics Source or turning on monitoring for a capacity.
* Find out which of the three scans failed when the Capacity Dashboard or the Consumption History show outdated data.

## Screen components

The screen has three cards: **What is collected**, **Scans in this collection** and **Capacities outside the Metrics App**.

### What is collected

**What it is:** a card with the description of the three scans and, in the footer, the links **View collected data in Capacity Dashboard →**, **View collected data in Consumption History →** and **View collected data in Consumption Metrics →**.

### Scans in this collection

**What it is:** a table with one row per scan and the columns **Scan**, **Last run**, **Status** and the **Run now** button.

<figure><picture><source srcset="../../assets/pm-mapeamento-metricas-capacidade-scans-en-dark.png" media="(prefers-color-scheme: dark)"><img src="../../assets/pm-mapeamento-metricas-capacidade-scans-en.png" alt="Scans in this collection card with the last run, the status and the Run now button of each scan"></picture><figcaption><p>Scans in this collection card</p></figcaption></figure>

| Scan | What it collects | Source | Automatic frequency |
| --- | --- | --- | --- |
| **Capacity** | Inventory of capacities (name, SKU, region, state) | Admin API | Once a day, at **00:00** (Brasília time) |
| **Capacity Consumption** | CU consumption of the capacities | Capacity Metrics App | Every 5 minutes |
| **Item Operation** | Daily operations per item (consumption per item, operation and day) | Capacity Metrics App | Every 5 minutes |

The **Status** of each row can be **Running** (blue), **Completed** (green), **Failed** (red) or **Never run** (gray). Each row has its own button, and the scans can run at the same time.

**How to use Run now:**

1. In the row of the desired scan, click **Run now**. There is no confirmation modal.
2. **Scan queued. The status updates by itself when it finishes.** appears and the button shows **Running…** (disabled).
3. When it finishes, Power Monitor notifies you with **Scan completed.** or **The scan finished with a failure. See the details in Scan Logs.**, and the **Last run** of the row is updated.

**Full history:** the **View full history in Scan Logs →** link opens [Scan Logs](logs-de-scans-e-re-execucoes.md) filtered by the three types (**Capacity**, **Capacity Consumption** and **Item Operation**).

### Capacities outside the Metrics App

**What it is:** a card that compares the organization's capacities with those that appear in the **Fabric Capacity Metrics App** model configured as the metrics source and, for each one that does not appear, shows the likely cause and what to do.

**What it is for:** finding out why a capacity has no consumption in Power Monitor (for example, a Power BI Embedded capacity where the Service Principal is not an administrator) without opening the Capacity Metrics App.

**How to use:**

1. Check the **Capacities**, **In the Metrics App** and **Outside the Metrics App** counters. With everything covered, the card shows *All capacities appear in the Metrics App.*
2. In the table (capacities outside the Metrics App come first), read the **Capacity**, **SKU** (with the family), **Status**, **Suggested action** and **Azure Monitor** columns.
3. Follow the suggested action. When available, use the **Configure metrics source**, **Open** or **Sync with Azure** links.

| Status | Suggested action |
| --- | --- |
| **In the Metrics App** | None. The capacity was seen in the last discovery (a paused one remains covered), with the date in *Seen in the Metrics App on {date}*. |
| **Metrics source not configured** | Configure the metrics source in *Settings › Monitoring* (**Capacity Metrics Source**). |
| **Not supported by the Metrics App** | None: this is the case of Premium Per User (PPU). |
| **Service Principal is not a capacity administrator** | Add the Service Principal as a capacity administrator (**Add permissions** in *Governance › Capacities*). |
| **Capacity paused** | Resume the capacity: while paused, it emits no consumption. |
| **Not found in the Metrics App model** | Refresh the Fabric Capacity Metrics App semantic model and wait for the next scan. |

The **Azure Monitor** column applies only to **Power BI Embedded (A)** capacities: **Eligible** when the `Microsoft.PowerBIDedicated/capacities` provider is confirmed (the capacity CPU is read from Azure Monitor and appears on the [Embedded tab](../governanca/capacidades.md#embedded-tab), even if it is outside the Metrics App), **Provider not confirmed** when **Sync with Azure** still needs to be run, and **Not applicable** for the other families. The **Consumption monitoring turned off** badge marks the capacities with monitoring turned off in *Settings › Monitoring*.

**How it works:** the card is read-only and visible only to **Administrators** (other profiles see *Only administrators can see capacity coverage.*). The list of administrators of each capacity is not displayed: the card only says whether the Service Principal is among them. With no capacities in the organization, run the **Capacity** scan to refresh the list.

### Run history

**What it is:** the **Run history** table, below the scans, with the runs of this screen's scans from the most recent to the oldest, with an items-per-page selector and pagination.

| Column | Content |
| --- | --- |
| **Trigger** | **Scheduled** or **Manual** (for manual runs, hover over the person icon to see who triggered it) |
| **Scan** | Which of this screen's scans ran |
| **Started** / **Finished** / **Duration** | Run times; while the run is in progress, **Duration** shows the elapsed time live |
| **Status** | Run status |
| **Items processed** | Number of items handled by the run |
| **Error** | Icon with the run's error message (hover over it) |

**What it is for:** checking the latest runs and the error of a failure without leaving the screen.

{% hint style="info" %}
The **Capacity** scan is the same capacity inventory as the [Capacities](capacidades.md) screen, which also brings the history per run and the changes modal. Use either one to trigger the inventory.
{% endhint %}

## Rules and behavior

* **Capacity Consumption and Item Operation** depend on the **Fabric Capacity Metrics App** and on the **Capacity Metrics Source** configured in *Settings › Monitoring*, besides monitoring turned on in at least one capacity for the automatic collection. Without the source configured, the run ends without collecting anything (no item processed). See [Enable Capacity Monitoring](../monitoramento/capacidades/ativar-monitoramento-de-capacidade.md).
* **CPU of Power BI Embedded (A) capacities:** the **Capacity Consumption** scan also reads, from **Azure Monitor**, the per-minute CPU and overload of each A capacity with the `Microsoft.PowerBIDedicated/capacities` provider, **Subscription** and **Resource Group** known. This part runs every 5 minutes even without a Metrics Source configured and without any capacity with consumption monitoring turned on. The data appears on the [Embedded tab](../governanca/capacidades.md#embedded-tab) of the capacity details.
* **Frequency:** the **Capacity** scan can have its **Frequency** changed to **Daily**, **Weekly** or **Monthly** and be turned off in *Settings › Monitoring › Scans and Collections* (**Capacity Inventory**). The two Capacity Metrics App scans run every 5 minutes and do not have this option. The **Run now** button is not affected by these settings.
* **Later processing:** the consumption collected here is turned into hourly metrics, baseline and anomalies by the processes followed in [Consumption Metrics](metricas-de-consumo.md).
* **Last run:** comes from the same record as Home, not from the window of days of Scan Logs.
* **How much it consumes:** **Capacity Consumption** and **Item Operation** run DAX queries on the Capacity Metrics App every 5 minutes, the largest CU consumption on the platform. This consumption falls on the capacity that hosts the **app workspace**, not necessarily on the monitored capacity. The footer of the **Scans in this collection** card shows the matching sentence, with an **i** that explains the consumption:
  * app on a capacity: *The capacity consumption and item operation scans consume Fabric capacity to update the data.*, and the **i** names the capacity;
  * app in a Pro or Premium Per User workspace: no sentence, because the queries consume no capacity;
  * app location unknown: *... may consume Fabric capacity, depending on where the Capacity Metrics app is installed.*

  Microsoft recommends installing the app in a Pro workspace to avoid throttling. See [Fabric capacity consumption](../configuracoes/monitoramento.md#fabric-capacity-consumption).

## Step by step

{% stepper %}
{% step %}
### Open the screen

In *Mapping › Capacity and cost › Capacity Metrics*.
{% endstep %}

{% step %}
### Check the state of the scans

Look at the **Last run** and the **Status** of **Capacity**, **Capacity Consumption** and **Item Operation**.
{% endstep %}

{% step %}
### Trigger the collection

Click **Run now** on the late scan and wait for the status to become **Completed**. If it fails, open **View full history in Scan Logs →**.
{% endstep %}

{% step %}
### Check the data

Open the [Capacity Dashboard](../dashboards/dashboard-de-capacidade.md) or the [Consumption History](../monitoramento/historico-de-consumo.md).
{% endstep %}
{% endstepper %}

## Frequently asked questions

<details>

<summary>Capacity Consumption completed, but the dashboard is empty. Why?</summary>

Check whether the **Capacity Metrics Source** is **Configured and validated** and whether there are capacities with monitoring turned on in *Settings › Monitoring*. Without the source, the scan ends without processing items. See [Enable Capacity Monitoring](../monitoramento/capacidades/ativar-monitoramento-de-capacidade.md).

</details>

<details>

<summary>Why are there scans every 5 minutes but the dashboard is delayed?</summary>

The scans read what the Capacity Metrics App already has available: if the app has not updated its data yet, there is no new data to collect. **Run now** only anticipates the reading.

</details>

<details>

<summary>What is the difference between this screen and Consumption Metrics?</summary>

This screen collects the raw consumption of the capacities. The [Consumption Metrics](metricas-de-consumo.md) screen follows the processes that turn it into hourly metrics, baseline and anomalies, and has no manual trigger.

</details>

## Related pages

* [Capacity Dashboard](../dashboards/dashboard-de-capacidade.md)
* [Consumption History](../monitoramento/historico-de-consumo.md)
* [Monitoring › Consumption Metrics](../monitoramento/metricas-de-consumo.md)
* [Capacities](capacidades.md)
* [Consumption Metrics (Mapping)](metricas-de-consumo.md)
* [Enable Capacity Monitoring](../monitoramento/capacidades/ativar-monitoramento-de-capacidade.md)
* [Mapping](README.md)
