Azure cloud metrics
Summarize
Summary of Azure cloud metrics
Azure cloud metrics enable you to monitor the performance of your Azure resources such as virtual machines (VMs) and storage accounts by collecting key performance data. ServiceNow gathers these metrics to provide visibility into your Azure environment, helping you maintain optimal cloud resource performance.
Show less
To start collecting metrics, you select the metrics to add to the Configuration Management Database (CMDB) and configure the system accordingly. Metrics include data points like bytes sent and received from Azure resources.
Using Azure policies
Metric collection is managed through Azure policies, which can be either preconfigured policies provided by ServiceNow or custom policies you create. When using preconfigured policies, the process includes:
- Preparing an instance with an active MID Server and metric base.
- Installing the Agent Client Collector Framework and Monitoring components.
- Running Discovery on your Azure cloud account to populate the CMDB with relevant configuration items (CIs) for monitoring.
- Configuring a proxy agent and assigning credentials to enable the policy to access Azure resources securely.
Proxy agents are responsible for monitoring CIs representing cloud-based agents, while credentials provide necessary access for metric retrieval.
ServiceNow provides several base system Azure policies for activation and configuration, including:
- Azure Load Balancer metrics: Collects load balancer performance data.
- Azure Gateway metrics: Collects network gateway metrics.
- Azure Redis Cache metrics: Collects Redis cache metrics.
- Azure Storage Account metrics: Collects storage account metrics.
- Azure Virtual Machine (VM) metrics: Collects VM performance metrics.
Specifying CIs for metric collection
When creating or customizing Azure policies, you must specify which CIs in the CMDB to monitor. These CIs are usually discovered automatically through Discovery processes that detect applications and devices in your network and update the CMDB accordingly.
To enable monitoring for selected CIs, you need to:
- Configure the Azure Metrics Collector check within the policy.
- Set credentials for the Azure Metrics Collector check, allowing the Agent Client Collector agent to retrieve metrics from Azure.
- Generate a JSON file listing the resources to monitor.
- Generate a JSON file specifying which metrics to retrieve from those resources.
This setup ensures precise and targeted metric collection aligned with your monitoring requirements.
Azure cloud metrics are gathered from Azure virtual machines (VMs) and Azure storage account policies. Collecting the cloud metrics enables you to monitor the performance of your Azure resources.
Azure cloud metrics collection - Overview
To begin collecting Azure cloud metrics, you must select the metrics that you want to add to the CMDB and set the relevant system configurations. For example, you can monitor the number of bytes sent and received from Azure resources. For details, see Agent Client Collector for Visibility Content reference.
Using Azure policies
You can use preconfigured Azure policies for metric collection, or you can create your own Azure policies.
- Prepare an instance with an active MID Server and metric base.
- Install Agent Client Collector Framework and Agent Client Collector Monitoring.
- Run Discovery on the Azure cloud account to populate the CMDB with the configuration items (CIs) to be monitored.
- Configure a proxy agent and assign credentials to the policy. Proxy agents monitor CIs for agents that are in the cloud. Credentials enable the agent to access the Azure policy.
| Policy name | Description | Link to supported metrics |
|---|---|---|
| Azure Load Balancer metrics | Collects the metrics for the Azure load balancers. | Supported metrics for Microsoft Load Balancers |
| Azure Gateway metrics | Collects the metrics for the Azure network gateway. | Supported metrics for Microsoft Network Gateways |
| Azure Redis Cache metrics | Collects the metrics for the Azure Redis cache. | Supported metrics for Microsoft Redis cache |
| Azure Storage Account metrics | Collects the metrics for the Azure storage accounts. | Supported metrics for Microsoft storage accounts |
| Azure Virtual Machine (VM) metrics | Collects the metrics for the VMs, which help you monitor Azure VMs. | Supported metrics for Microsoft virtual machines |
Specifying the CIs for metric collection
When creating policies, you must include the CIs that you want to collect the metrics for in the CMDB. The CIs are typically populated during Discovery, which finds applications and devices on your network and updates the CMDB accordingly.
- Configure the Azure Metrics Collector check in the policy.
- Set the credentials for the Azure Metrics Collector check to enable retrieving metrics from Azure to the Agent Client Collector agent.
- Generate a .json file that specifies the list of resources to be monitored.
- Generate a .json file that specifies the list of metrics to be retrieved from monitored resources.
For details on the Azure Metrics Batch API, see the Metrics Batch API page.