You can find details about we calculate these metrics in Messages and connections in Azure SignalR Service.
On the overview pane of Azure SignalR Service resources, we've already chosen the appropriate aggregation type for you. You can use Supported metrics with Azure Monitor as a reference.