Skip to content

Commit 5c021dc

Browse files
SUMO-259572 | Apoorv | Add. Metric rules section back in VM doc
1 parent 26e423a commit 5c021dc

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

docs/integrations/microsoft-azure/azure-virtual-machine.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,23 @@ You must explicitly enable diagnostic settings for each Virtual Machine you want
3030

3131
When you configure the event hubs source or HTTP source, plan your source category to ease the querying process. A hierarchical approach allows you to make use of wildcards. For example: `Azure/VM/ActivityLogs`, `Azure/VM/Metrics`.
3232

33+
### Configure metric rules
34+
35+
* **Azure Observability Metadata Extraction VMName**
36+
37+
In case this rule already exists, then no need to create it again.
38+
39+
```sql
40+
Rule Name: AzureObservabilityMetadataExtractionVMName
41+
```
42+
43+
```sql title="Metric match expression"
44+
tenant_name=* namespace=Microsoft.Compute/virtualMachines resource_name=*
45+
```
46+
47+
| Fields extracted | Metric rule |
48+
|:--|:--|
49+
| `vmname` | `$resource_name._1` |
3350
### Configure metrics collection
3451

3552
To set up the Azure Metrics source in Sumo Logic, refer to [Azure Metrics Source](/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source).

0 commit comments

Comments
 (0)