# Introduction

The language analyzers calculate the different code metrics that will be used to evaluate the code quality:

* Code metrics are used in [overview](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/rules/overview "mention") to raise issues, for example, when a certain level of complexity is reached for a function in the code.
* Code metrics are used in the [quality-gates](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/quality-gates "mention") definition. For example, you can set a condition on the total number of raised issues in the code.

You can use different tools in the SonarQube UI to monitor and compare the code metrics of your project or portfolio. You can also retrieve the metric values through the SonarQube Web API in case you’re using an external monitoring system.

### Related links <a href="#related-links" id="related-links"></a>

[metrics-definition](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/code-metrics/metrics-definition "mention")

[monitoring-project-metrics](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/code-metrics/monitoring-project-metrics "mention")

[monitoring-portfolio-metrics](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/code-metrics/monitoring-portfolio-metrics "mention")

[monitoring-metrics-through-web-api](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/code-metrics/monitoring-metrics-through-web-api "mention")

[modifying-technical-debt-parameters](https://docs.sonarsource.com/sonarqube-server/10.6/user-guide/code-metrics/modifying-technical-debt-parameters "mention")
