SonarQube integration metrics

The official Datadog integration for monitoring SonarQube. It collects 97 metrics.

Official summary

Monitor your SonarQube server and projects.

Metric types

  • gauge (value at a point in time): 94
  • count (occurrences in the interval): 3

Metrics

Descriptions are the official definitions, unedited.

MetricTypeUnit
sonarqube.complexity.cognitive_complexityCognitive complexitygauge-
sonarqube.complexity.complexityCyclomatic complexitygauge-
sonarqube.coverage.branch_coverageCondition coveragegaugepercent
sonarqube.coverage.conditions_to_coverConditions to covergauge-
sonarqube.coverage.coverageCoverage by testsgaugepercent
sonarqube.coverage.line_coverageLine coveragegaugepercent
sonarqube.coverage.lines_to_coverLines to covergauge-
sonarqube.coverage.new_branch_coverageCondition coverage of new/changed codegaugepercent
sonarqube.coverage.new_conditions_to_coverConditions to cover on new codegauge-
sonarqube.coverage.new_coverageCoverage of new/changed codegaugepercent
sonarqube.coverage.new_line_coverageLine coverage of added/changed codegaugepercent
sonarqube.coverage.new_lines_to_coverLines to cover on new codegauge-
sonarqube.coverage.new_uncovered_conditionsUncovered conditions on new codegauge-
sonarqube.coverage.new_uncovered_linesUncovered lines on new codegauge-
sonarqube.coverage.skipped_testsNumber of skipped unit testsgauge-
sonarqube.coverage.test_errorsNumber of unit test errorsgauge-
sonarqube.coverage.test_failuresNumber of unit test failuresgauge-
sonarqube.coverage.test_success_densityDensity of successful unit testsgaugepercent
sonarqube.coverage.testsNumber of unit testsgauge-
sonarqube.coverage.uncovered_conditionsUncovered conditionsgauge-
sonarqube.coverage.uncovered_linesUncovered linesgauge-
sonarqube.duplications.duplicated_blocksDuplicated blocksgauge-
sonarqube.duplications.duplicated_filesDuplicated filesgauge-
sonarqube.duplications.duplicated_linesDuplicated linesgauge-
sonarqube.duplications.duplicated_lines_densityDuplicated lines balanced by statementsgaugepercent
sonarqube.duplications.new_duplicated_blocksDuplicated blocks on new codegauge-
sonarqube.duplications.new_duplicated_linesDuplicated Lines on New Codegauge-
sonarqube.duplications.new_duplicated_lines_densityDuplicated lines (%) on new code balanced by statementsgaugepercent
sonarqube.issues.blocker_violationsBlocker issuesgauge-
sonarqube.issues.confirmed_issuesConfirmed issuesgauge-
sonarqube.issues.critical_violationsCritical issuesgauge-
sonarqube.issues.false_positive_issuesFalse positive issuesgauge-
sonarqube.issues.info_violationsInfo issuesgauge-
sonarqube.issues.major_violationsMajor issuesgauge-
sonarqube.issues.minor_violationsMinor issuesgauge-
sonarqube.issues.new_blocker_violationsNew Blocker issuesgauge-
sonarqube.issues.new_critical_violationsNew Critical issuesgauge-
sonarqube.issues.new_info_violationsNew Info issuesgauge-
sonarqube.issues.new_major_violationsNew Major issuesgauge-
sonarqube.issues.new_minor_violationsNew Minor issuesgauge-
sonarqube.issues.new_violationsNew issuesgauge-
sonarqube.issues.open_issuesOpen issuesgauge-
sonarqube.issues.reopened_issuesReopened issuesgauge-
sonarqube.issues.violationsIssuesgauge-
sonarqube.issues.wont_fix_issuesWon't fix issuesgauge-
sonarqube.maintainability.code_smellsCode Smellsgauge-
sonarqube.maintainability.new_code_smellsNew Code Smellsgauge-
sonarqube.maintainability.new_maintainability_ratingMaintainability rating on new codegauge-
sonarqube.maintainability.new_sqale_debt_ratioTechnical Debt Ratio of new/changed code.gaugepercent
sonarqube.maintainability.sqale_debt_ratioRatio of the actual technical debt compared to the estimated cost to develop the whole source code from scratchgaugepercent
sonarqube.maintainability.sqale_ratingA-to-E rating based on the technical debt ratiogauge-
sonarqube.reliability.bugsBugsgauge-
sonarqube.reliability.new_bugsNew Bugsgauge-
sonarqube.reliability.new_reliability_ratingReliability rating on new codegauge-
sonarqube.reliability.reliability_ratingReliability ratinggauge-
sonarqube.security.new_security_ratingSecurity rating on new codegauge-
sonarqube.security.new_vulnerabilitiesNew Vulnerabilitiesgauge-
sonarqube.security.security_ratingSecurity ratinggauge-
sonarqube.security.vulnerabilitiesVulnerabilitiesgauge-
sonarqube.security_review.new_security_hotspotsNew Security Hotspotsgauge-
sonarqube.security_review.new_security_hotspots_reviewedPercentage of Security Hotspots Reviewed on New Codegaugepercent
sonarqube.security_review.new_security_review_ratingSecurity Review Rating on New Codegauge-
sonarqube.security_review.security_hotspotsSecurity Hotspotsgauge-
sonarqube.security_review.security_hotspots_reviewedPercentage of Security Hotspots Reviewedgaugepercent
sonarqube.security_review.security_review_ratingSecurity Review Ratinggauge-
sonarqube.server.async_execution.largest_worker_countgauge-
sonarqube.server.async_execution.queue_sizegauge-
sonarqube.server.async_execution.worker_countgauge-
sonarqube.server.compute_engine_tasks.error_countNumber of Background Tasks which failed since the last restart of SonarQubecounterror
sonarqube.server.compute_engine_tasks.in_progress_countNumber of Background Tasks currently under processing. Its value is either 1 or 0, since SonarQube can process only one task at a time.gauge-
sonarqube.server.compute_engine_tasks.longest_pending_timePending time (ms) of the oldest Background Task waiting to be processed. This measure, together with PendingCount, helps you know if analyses are stacking and taking too long to start processing. This helps you evaluate if it might be worth configuring additional Compute Engine workers (Enterprise Edition) or additional nodes (Data Center Edition) to improve performance. Requires SonarQube >=9.0.gaugemillisecond
sonarqube.server.compute_engine_tasks.pending_countNumber of Background Tasks waiting to be processed since the last restart of SonarQubecount-
sonarqube.server.compute_engine_tasks.processing_timeMeasure the time spent to process Background Tasks since the last restart. The value will always increase. This measure is powerful when combined with SuccessCount and ErrorCount measures to get the average time to handle a Background Task, or when used to understand how much time the server is spending during a day to handle Background Tasks. It gives you an indication of the load on your server.gauge-
sonarqube.server.compute_engine_tasks.success_countNumber of Background Tasks successfully processed since the last restart of SonarQubecount-
sonarqube.server.compute_engine_tasks.worker_countNumber of Background Tasks that can be processed at the same timegauge-
sonarqube.server.compute_engine_tasks.worker_max_countgauge-
sonarqube.server.database.pool_active_connectionsNumber of active database connectionsgaugeconnection
sonarqube.server.database.pool_idle_connectionsNumber of database connections waiting to be usedgaugeconnection
sonarqube.server.database.pool_initial_sizeInitial size of the database connections poolgaugeconnection
sonarqube.server.database.pool_max_active_connectionsMaximum number of active database connectionsgaugeconnection
sonarqube.server.database.pool_max_idle_connectionsMaximum number of database connections waiting to be usedgaugeconnection
sonarqube.server.database.pool_max_wait_millisgaugemillisecond
sonarqube.server.database.pool_min_idle_connectionsgaugeconnection
sonarqube.server.database.pool_remove_abandoned_timeout_secondsgaugesecond
sonarqube.size.classesClassesgauge-
sonarqube.size.comment_linesNumber of comment linesgauge-
sonarqube.size.comment_lines_densityComments balanced by ncloc + comment linesgaugepercent
sonarqube.size.directoriesDirectoriesgauge-
sonarqube.size.filesNumber of filesgauge-
sonarqube.size.functionsFunctionsgauge-
sonarqube.size.generated_linesNumber of generated linesgauge-
sonarqube.size.generated_nclocGenerated non Commenting Lines of Codegauge-
sonarqube.size.linesLinesgauge-
sonarqube.size.nclocNon commenting lines of codegauge-
sonarqube.size.new_linesNew linesgauge-
sonarqube.size.projectsNumber of projectsgauge-
sonarqube.size.statementsNumber of statementsgauge-

Official documentation

Official documentation for the SonarQube integration

Metric names and descriptions are the official Datadog integration definitions (Copyright Datadog, Inc., BSD-3-Clause), reproduced unedited. The full license terms are on the About page.