What is the total metricKey value?

I am new to Sonarqube and would like to understand what is the total metric value. If normal metricKey value consists new code value as well or in order to get total I have to add normal metricKey + new code metricKey eg:

TOTAL = vulnerabilities
TOTAL = vulnerabilities + new_vulnerabilities

SonarQube server API version:

I would like to know what is the correct way to get total metric value for latest analyses report?


Welcome to the community!

First, your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

8.0 → 8.9.2 → 9.1 (last step optional)

Regarding your actual question, the metrics without “new” in the name are the overall values, so the totals. No addition needed.