SonarQube Integration
Metrics calculated by Sonar data
Having configured SonarQube the following metrics will be available:
Code Quality:
Security:
Unit Testing:
Code Documentation:
Perf supports integration with SonarQube version starting from 8.6
To connect to SonarQube it is necessary to:
Provide the URL.
Enter Login (it may stay empty if API Token is used).
1 To generate API Token in SonarQube please refer to the https://docs.sonarqube.org/latest/user-guide/user-token/
Note: "User Token" type is required
2 For EPAM SonarQube instance please use the URL: https://sonar.epam.com/sonarqube
3 A reference of specific SonarQube measures mapped to "business" metrics is available here: https://docs.sonarqube.org/display/SONAR/Metric+Definitions
Enter Password (or API Token).
Click Get list of projects.
Limitation
SonarQube has a limitation of the amount of data to return: <= 10000 projects. Be aware of that fact while configuring a data source.
5. Select projects to monitor:
Number of selected Projects
In case if you have quite a lot of projects to select and thus visualize in the dashboards (e.g. more than 10), it might cause lots of data series in the charts (e.g. Unit Test Success, Technical Debt, etc) - those which display Sonar data over a timeline. This will likely make those charts hard to read.
In such cases we recommend to use the Engineering summary: Code Quality chart - it can handle even a huge number of projects and still allow to drill-down into details of each chart.
6. Click Save to finish.
7. Click Run Data Load to start a data load.