How To Get Application Metrics In Sonarqube

Hi Team,

We are looking to generate application metrics for our sonarqube instance like how many users, projects available, what is the analysis status, how may code passed, failed etc.
Can you please suggest what is the best possible way to do this. Please share any documentation you may have for this.
We are more inclined towards Prometheus as we can collect metrics of all Devops tools under that. Does sonar support this?
We have sonar machines from 7.9 to 8.9

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTS at your earliest convenience. Your upgrade path is:

7.9.x → 8.9.10 → 9.9

You may find the Upgrade Guide and the LTS-to-LTS Upgrade Notes for 7.9 to 8.9, as well as the LTS to LTS release upgrade notes for 8.9 to 9.9 helpful. If you have questions about upgrading, feel free to open a new thread for that here.

Regarding your question, you should be able to pull the data via the Web 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