Viewing billing or usage information

This page provides instructions on how to view billing and usage information for both SonarQube Cloud organizations and enterprises.

This page explains how to view your billing and usage information. If you are concerned that you might be close to the LOC (number of lines of code) limit defined in your subscription plan, you can check your current consumption as described below. For more information, see LOC-based pricing. To change the LOC limit, see Changing your subscription plan.

The LOC is a metric (ncloc) that you can also retrieve through the Web API by using the /api/measures endpoint. See Understanding measures and metrics for more information.

Viewing your organization’s billing and usage information

To view your organization’s billing and usage information, you must be an admin of the organization. Proceed as follows:

  1. Retrieve your organization. See Retrieving your organizations for more details.

  2. Select the Billing & Usage tab. The dashboard shows details of the total LOC analyzed to date and the total number of projects. If your organization belongs to an enterprise and uses the shared LOCs, you will see the usage of the shared LOCs. For more information about shared LOCs, see About the enterprise lines of code limit (Shared LOC and Allocated LOC).

  3. Click on the number of projects to view a breakdown of the number of lines of code contained in each project within your organization.

SonarQube Cloud shows you the lines of code distribution per project.

Viewing your enterprise’s usage information

See Viewing the lines of code consumption.

Last updated

Was this helpful?