SonarQube

Parny | SonarQube Integration Guide

Parny supports direct integration with Sonarqube alerts. Sonarqube is a network and system monitoring tool that can create alarms to detect and prevent potential problems. This documentation explains how to redirect alarms created in Sonarqube to a webhook using Parny.


Parny Settings


  1. Go to the Parny interface.

  2. Navigate to the "Services" section of your organization.

  3. Click on the "New Services" option in the upper right corner.

  4. Enter the relevant service name.

Service Name Usage: The service name here is independent of the structure and can be chosen according to the preferences of the organization.


  1. Select Sonarqube from the list of integrations.

  2. Click "Add".

  3. After the service is created, the following screen will appear.


drawing


  • You can now click on the token section of your service and copy your SonarQube Webhook URL.


SonarQube Configuration

In this section, we will guide you through "Adding Webhook".


Adding Webhook


  1. In order to add a Webhook on SonarQube , click the "Webhook Endpoints" section under "Settings > Integrations > Webhook Endpoints".


  1. Then click the "Create Webhook Endpoint" button.


  1. The name and url and of the endpoint should be typed. Then the enable checkbox should be selected, this checkbox is used for activating or deactivating the webhook. "Trigger Events" part allows user to define the event catgories that trigger to the webhook action.


drawing


  1. Your payload should be as follows:


{  
	"event": <event_name>, 
	"object_id": <object_id>,  
	"current": 
	{  
	    "created_at": "2022-12-02T20:00:40+00:00",  
		<content and details with related to the event>


With these settings, your SonarQube alarms will be forwarded to Parny, allowing you to manage them alongside your other alerts within your organization's Parny interface.