Monitoring server wide metrics

metrics
web_api
monitoring

(Balázs Hosszu) #1

Dear Sonar Community!

I’d like to monitor the following metrics, for which I planned to use the REST Api:

  • Total Lines of Code
  • Total number of projects

api/measures/search is the closes to my needs, but that is still project based and not server based.
https://next.sonarqube.com/sonarqube/web_api/api/measures?deprecated=true&internal=true

Are there ways to easily reach these metrics ?

Thanks and cheers,
Balázs


(G Ann Campbell) #2

Hi Balazs,

Since you’re willing to use internal and deprecated web services - meaning these services could be changed completely or snatched away at any time and you use them completely at your own risk - then take a look at https://next.sonarqube.com/sonarqube/web_api/api/navigation?deprecated=true&internal=true&query=total.

 
:wink:
Ann