Skip to content

Commit 8b61fec

Browse files
authored
Merge pull request #815 from SumoLogic/ssong-azure-metrics-source
Publish documentation for Azure Metrics Source
2 parents 81cf0fd + f367b3e commit 8b61fec

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
DOCS:
44
* Updated monitor documentation with a few trigger condition fields that were missing.
55

6+
FEATURES:
7+
* **New Resource:** sumologic_azure_metrics_source (GH-710)
68

79
## 3.1.5 (September 9, 2025)
810

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_azure_metrics_source"
4+
description: |-
5+
Provides a Sumologic Azure Metrics Source.
6+
---
7+
8+
# sumologic_azure_metrics_source
9+
Provides a [Sumologic Azure Metrics Source](https://help.sumologic.com/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source/)
10+
11+
## Example Usage
12+
```hcl
13+
locals {
14+
tagfilters = [{
15+
"type" = "AzureTagFilters"
16+
"namespace" = "Microsoft.ClassicStorage/storageAccounts"
17+
"tags" {
18+
"name" = "test-name-1"
19+
"values" = ["value1", "value2"]
20+
}
21+
},{
22+
"type" = "AzureTagFilters"
23+
"namespace" = "Microsoft.ClassicStorage/storageAccounts"
24+
"tags" {
25+
"name" = "test-name-2"
26+
"values" = ["value3"]
27+
}
28+
}]
29+
}
30+
31+
resource "sumologic_azure_metrics_source" "terraform_azure_metrics_source" {
32+
name = "Azure Metrics Source"
33+
description = "My description"
34+
category = "azure/metrics"
35+
content_type = "AzureMetrics"
36+
collector_id = "${sumologic_collector.collector.id}"
37+
38+
authentication {
39+
type = "AzureClientSecretAuthentication"
40+
tenant_id = "azure_tenant_id"
41+
client_id = "azure_client_id"
42+
client_secret = "azure_client_secret"
43+
}
44+
45+
path {
46+
type = "AzureMetricsPath"
47+
environment = "Azure"
48+
limit_to_regions = ["eastus2", "westeurope"]
49+
limit_to_namespaces = ["Microsoft.ClassicStorage/storageAccounts"]
50+
dynamic "azure_tag_filters" {
51+
for_each = local.tagfilters
52+
content {
53+
type = azure_tag_filters.value.type
54+
namespace = azure_tag_filters.value.namespace
55+
tags {
56+
name = azure_tag_filters.value.tags.name
57+
values = azure_tag_filters.value.tags.values
58+
}
59+
}
60+
}
61+
}
62+
}
63+
64+
resource "sumologic_collector" "collector" {
65+
name = "my-collector"
66+
description = "Just testing this"
67+
}
68+
```
69+
70+
## Argument reference
71+
In addition to the [Common Source Properties](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#common-source-properties), the following arguments are supported:
72+
- `content_type` - (Required) Must be `AzureMetrics`.
73+
- `authentication` - (Required) Authentication details for connecting to ingest metrics from Azure.
74+
+ `type` - (Required) Must be `AzureClientSecretAuthentication`.
75+
+ `tenant_id` - (Required) Your tenant id collected from [Azure platform](https://help.sumologic.com/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source/#vendor-configuration).
76+
+ `client_id` - (Required) Your client id collected from [Azure platform](https://help.sumologic.com/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source/#vendor-configuration).
77+
+ `client_secret` - (Required) Your client secret collected from [Azure platform](https://help.sumologic.com/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source/#vendor-configuration).
78+
- `path` - (Required) The location to scan for new data.
79+
+ `type` - (Required) Must be `AzureMetricsPath`.
80+
+ `environment` - (Required) The Azure environment from which to collect metrics.
81+
+ `limit_to_regions` - (Optional) The list of regions from which to collect metrics. By default all regions are selected.
82+
+ `limit_to_namespaces` - (Optional) The list of namespaces from which to collect metrics. By default all namespaces are selected.
83+
+ `azure_tag_filters` - (Optional) Tag filters allow you to filter the Azure metrics by the tags you have assigned to your Azure resources. You can define tag filters for each supported namespace. If you do not define any tag filters, all metrics will be collected for the namespaces configured above.
84+
+ `type` - (Required) Must be `AzureTagFilters`
85+
+ `namespace` - Namespace for which you want to define the tag filters.
86+
+ `tags` - List of key and value pairs of tag filters.
87+
+ `name`: The name of the tag.
88+
+ `values`: The list of accepted values for the tag name.

0 commit comments

Comments
 (0)