Once you have setup your SonarQube servers, you just need to use the SonarQube Connector Hotspots Brekdown macro to setup the resource you want to get the security hotspots from.

You have to complete these parameters:

Setting multiple resource keys

The same way as the SonarQube Connector Macro, you can use multiple resouce keys in your SonarQube Connector Issue Breakdown 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.