Sonar (SonarSource) - SonarQube Server

Sonar (SonarSource) - SonarQube Server

Let AI connect your sources for you

Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Learn more
PostHog Wizard hedgehog

Connect Sonar (SonarSource) - SonarQube Server to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.

Connect your self-hosted SonarQube Server to pull code-quality data into the PostHog Data warehouse.

Enter your server URL (e.g. https://sonarqube.yourcompany.com) and a user token. Create a token under My Account → Security → Generate Tokens in your SonarQube instance. The token inherits your permissions, so it can read the projects, issues, and rules you can see. Syncing the users table additionally requires the Administer System permission.

Configuration

OptionTypeRequired
Server URLtextYes
User tokenpasswordYes

Linking Sonar (SonarSource) - SonarQube Server to PostHog

  1. Go to the Data pipeline page in PostHog
  2. Click New source and select Sonar (SonarSource) - SonarQube Server
  3. Fill in the required configuration fields
  4. Click Next, select the tables you want to sync, and then press Import

Supported tables

TableDescriptionSync methodIncremental fieldPrimary key
projects

Projects analyzed on your SonarQube instance (components with the TRK qualifier).

Full refresh
metrics

Definitions of the metrics SonarQube can measure (e.g. coverage, bugs, code smells).

Full refresh
rules

The catalog of coding rules used to raise issues during analysis.

Full refresh
issues

Issues raised by analysis — bugs, vulnerabilities, code smells, and security hotspots.

Incremental, Full refreshcreationDate
users

Users of the SonarQube instance. Requires the Administer System permission.

Full refresh