Mohan_P
(Mohan)
March 21, 2024, 5:55am
1
We are using Sonaqube Enterprise version 9.9.1 and need to display the following list in Grafana.
Quality gate status
Bugs
vulnerabilities
hotspots
code smell
coverage
I could not find any plugins. kindly suggest a solution to achieve the above scenario.
ganncamp
(G Ann Campbell)
March 22, 2024, 2:53pm
2
Hi,
Welcome to the community!
You’ll need to do this with the API. The best way to master the API is to perform the desired action via the UI and eavesdrop to see which calls the UI made to accomplish the action.
You may also find this guide helpful.
Ann
Hi,
we send webhooks to Splunk.
Maybe the payload of the Sonarqube webhook is sufficient for your requirements, see
An HTTP header X-SonarQube-Project
with the project key as the value is sent to allow quick identification of the project involved.
The payload is a JSON document that includes:
When the analysis was performed: see analysedAt
The identification of the project analyzed: see project
Each Quality Gate criterion checked and its status: see qualityGate
The Quality Gate status of the project: see qualityGate.status
The status and the identifier of the background task : see status
and taskId
User-specified properties: see properties
Gilbert
1 Like