# 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="https://512221655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyDv2XwTC1xoOKBYeCK45%2Fuploads%2Fgit-blob-f0a1650f531830dc07d2b6a5b47c04a93abbcd59%2Fsonarqube-select-portfolio-metrics.png?alt=media" 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="https://512221655-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyDv2XwTC1xoOKBYeCK45%2Fuploads%2Fgit-blob-bd4f1dab91c7fff424f5470e203f2a64855c0b5c%2Fsonarqube-code-metrics-monitoring-portfolio.png?alt=media" alt="Adding custom metrics to the graph"><figcaption></figcaption></figure></div>
