A virtual hub refers to a Microsoft-managed virtual network that serves as a central point for connectivity and networking services. Within the virtual hub, Microsoft provides various service endpoints to facilitate connectivity. From your on-premises network (vpnsite), you can connect to a VPN gateway inside the virtual hub, connect ExpressRoute circuits to a virtual hub, or even connect mobile users to a point-to-site gateway in the virtual hub.
The virtual hub serves as the central component of your network infrastructure within a specific region in Azure. Multiple virtual hubs can be created within the same region, allowing for the segmentation and isolation of network resources based on organizational requirements.
Use OpsRamp Azure public cloud integration to discover and collect metrics against Azure Virtual Hubs.
Setup
To set up the Azure integration and discover the Virtual Hubs resources, do the following:
Create an Azure Integration if not available in your installed integrations. For more information on how to install the Azure Integration, refer to Install Azure integration.
Create a discovery profile.
Select
Azure Virtual Hubsunder the Filter Criteria on the Edit Discovery Profile page.Save the discovery profile to make it available in the list of Discovery Profiles.
Scan to discover the resources at any time independent of the predefined schedule.
Once the scan is completed, you can view the Azure Virtual Hubs resources under Infrastructure > Resources > Microsoft Azure category.

Create a template with collector type Azure and applicable for Azure Virtual Hubs. See Create a Template for more information on how to create a template.
Refer to Assign a Template on how to assign a template to a resource.
Click the Metrics tab to view the monitoring data of Azure Virtual Hubs.
Event support
OpsRamp supports Azure events for Azure Virtual Hubs. Configure Azure Events in OpsRamp Azure integration discovery profile. See Process Azure Events for more information on how to configure Azure events.
Supported metrics
| OpsRamp Metric | Azure Metric | Metric Display Name | Unit | Aggregation Type | Description |
|---|---|---|---|---|---|
| azure_network_virtualhubs_BgpPeerStatus | BgpPeerStatus | Bgp Peer Status | Count | Maximum | 1 - Connected, 0 - Not connected |
| azure_network_virtualhubs_CountOfRoutesAdvertisedToPeer | CountOfRoutesAdvertisedToPeer | Count Of Routes Advertised To Peer | Count | Maximum | Total number of routes advertised to peer |
| azure_network_virtualhubs_CountOfRoutesLearnedFromPeer | CountOfRoutesLearnedFromPeer | Count Of Routes Learned From Peer | Count | Maximum | Total number of routes learned from peer |
| azure_network_virtualhubs_RouteServiceActiveFlows | RouteServiceActiveFlows | Number of Active Flows in the Virtual Hub Router | Count | Average | Data on how many flows traverse the virtual hub router in a given time period |
| azure_network_virtualhubs_RouteServiceFlowsCreationRate | RouteServiceFlowsCreationRate | Max Flows Created Per Second | CountPerSecond | Maximum | Maximum Number of Flows Created Per Second in the Virtual Hub Router |
| azure_network_virtualhubs_RoutingInfrastructureUnits | RoutingInfrastructureUnits | Routing Infrastructure Units | Count | Maximum | Total number of routing infrastructure units, which represent the virtual hub's capacity |
| azure_network_virtualhubs_SpokeVMUtilization | SpokeVMUtilization | Spoke VM Utilization | Percent | Maximum | Number of deployed spoke VMs as a percentage of the total number of spoke VMs that the hub's routing infrastructure units can support |
| azure_network_virtualhubs_VirtualHubDataProcessed | VirtualHubDataProcessed | Data Processed by the Virtual Hub Router | Bytes | Total | Data on how much traffic traverses the virtual hub router in a given time period. Only the following flows use the virtual hub router: VNet to VNet (same hub and interhub) and branch to VNet (interhub). If a virtual hub is secured with routing intent, then these flows traverse the firewall instead of the hub router |