# Monitoring portfolio metrics

Portfolios are available starting in [*Enterprise Edition*](https://www.sonarsource.com/plans-and-pricing/enterprise/).

To view the values of all code metrics in your portfolio:

1. In the top navigation bar, click **Portfolios** and then click the portfolio you want to monitor.
2. In the portfolio navigation bar, click **Measures**.

To view the value history of one or several code metrics in your portfolio:

1\. In the top navigation bar, click **Portfolios** and then click the portfolio you want to monitor.

2\. In the portfolio navigation bar, click **Activity**. The number of issues is shown in a graph.

3\. To change the metrics shown, click **Issues** and select another metric category in the drop-down list.

<div align="left"><figure><img src="/files/z2eKWmfi2nLihyWOlw2e" alt="Selecting another metric category"><figcaption></figcaption></figure></div>

4\. Select **Custom** if you want to monitor other metrics: the **Add metric** drop-down list is displayed. Then, click **Add metric** and select in the drop-down list the metric(s) you want to monitor. A graph is displayed for each selected metric so that you can compare them.

<div align="left"><figure><img src="/files/3ABw9m1SPYj9onwpCl0t" alt="Adding custom metrics to the graph"><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sonarsource.com/sonarqube-server/2025.5/user-guide/code-metrics/monitoring-portfolio-metrics.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
