Once you have setup your SonarQube servers, you just need to use the SonarQube Connector Badge macro to setup the resource you want to get the badge (metric) from.

You have to complete two parameters:


Setting multiple resource keys

The same way as the SonarQube Connector Macro, you can use multiple resouce keys in your SonarQube Connector Badge macro. The value that will be displayed will be the aggregated value.

Take a look at Setting multiple resource keys if you need more information about it.