# Monitoring project metrics

You can view the values of all code metrics in your project and you can view the value history of one or several code metrics in your project.

## Viewing the values of all code metrics <a href="#all-metrics" id="all-metrics"></a>

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

## Viewing the value history of one or several metrics <a href="#value-history" id="value-history"></a>

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

2\. In the project navigation bar, select **Activity**. The left sidebar contains the list of code scans performed on your project.

3\. In **Filter events**, you can filter the scans list by event type. See [#event-types](https://docs.sonarsource.com/sonarqube-server/2025.1/viewing-projects/activity-and-history#event-types "mention") for more information.

4\. Issues are shown in the graph by default. To change the metrics shown, click **Issues** and select another metric category in the drop-down list.

<figure><img src="https://3560343708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4FzELVjsPO4ijRo3jtBV%2Fuploads%2Fgit-blob-5c6016b93205ffda21b3697a880078fca6398783%2Fsonarqube-select-metrics.png?alt=media" alt="Selecting custom metrics for issues"><figcaption></figcaption></figure>

5\. 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. The selected metrics are displayed in one or several graphs so that you can compare them.

<figure><img src="https://3560343708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F4FzELVjsPO4ijRo3jtBV%2Fuploads%2Fgit-blob-b2056c2fe32b64abb2d9d3abbcc7f2e85f1b48c6%2Fsonarqube-code-metrics-monitoring.png?alt=media" alt="Adding custom metrics to the graph"><figcaption></figcaption></figure>
