My organization is using SonarQube 8.9.6 CE
We want to consume project and analysis data to build dashboards with it.
We were leveraging the REST API but we found that the only endpoint that returns all the project keys on a SQ instance (api/projects/search) requires Administer Privileges.
We would like to access data without using the REST API and we were thinking of ingesting Sonar analysis logs into an Elastic database.
Is this possible? Is there an integration between SonarQube and Elastic we could use to ingest tha data?
For what it’s worth – GET api/components/search_projects will also return a list of project keys that the user making the API call has access to (based on the permissions assigned to that user).
You won’t be able to get much information from analysis logs as those logs only have factual details about the analysis rather than the measures/issues (which are sent to the SoanrQube server for processing).
Out of curiosity, what kind of dashboards are you looking to build that aren’t available in SonarQube out-of-the-box?
My use case requires me to find projects with the same project name but different project keys and pick the last analysed one. I wanted to use
api/projects/search because it contains the last analysis date for each project.
We are building a custom visualisation that condenses Sonar quality metrics with other metrics coming from other services/servers. We want to display everything on the same place.
GET api/components/search_projects also returns
analysisDate as long as you include
f=analysisDate as a query parameter.
See an API call like this:
Did anyone ever mentioned HOW AWESOME YOU ARE?
Thanks for the help!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.