Loading

Azure Compute VM Integration

<div class="condensed-table">
| | |
| --- | --- |
| Version | 1.6.9 (View all) |
| Compatible Kibana version(s) | 8.12.0 or higher |
| Supported Serverless project types
What’s this? | Security
Observability |
| Subscription level
What’s this? | Basic |

</div>
The Azure Compute VM data stream collects and aggregates virtual machine related metrics from Azure Compute VM type resources where it can be used for analysis, visualization, and alerting. The Azure Compute VM will periodically retrieve the Azure Monitor metrics using the Azure REST APIs as MetricList. Additional Azure API calls will be executed to retrieve information regarding the resources targeted by the user.

Before you start, check the Authentication and costs section.

Follow these step-by-step instructions on how to set up an Azure metrics integration.

Period
(string) Reporting interval. Metrics will have a timegrain of 5 minutes, so the Period configuration option for compute_vm should have a value of 300s or multiple of 300sfor relevant results.
Resource IDs
([]string) The fully qualified ID’s of the resource, including the resource name and resource type. Has the format /subscriptions/{{guid}}/resourceGroups/{{resource-group-name}}/providers/{{resource-provider-namespace}}/{resource-type}/{{resource-name}}. Should return a list of resources.
Resource Groups
([]string) This option will return all virtual machines inside the resource group.

If no resource filter is specified, then all virtual machines inside the entire subscription will be considered.

The primary aggregation value will be retrieved for all the metrics contained in the namespaces. The aggregation options are avg, sum, min, max, total, count.

To collect monitoring data from the guest operating system of your virtual machine, you can configure a diagnostic agent, which is an Azure Diagnostics extension. The monitoring data is collected into an Azure storage account and can be viewed from the Azure Monitor.

Important

Before you continue, make sure you have a storage account to store the metrics you collect. The storage account must be in the same region as your virtual machine.

To enable the diagnostic agent:

  1. Sign in to the Azure Portal and select your virtual machine.
  2. From Monitoring > Diagnostic settings configure the diagnostic agent and select the storage account you want to use to collect your data.
  3. From the Sinks tab, check Enable Azure Monitor to view your data from Azure Monitor dashboards.

For more information on sending guest OS metrics to Azure Monitor, check the Microsoft documentation.