-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUMO-245309 Add the doc for the new resource sumologic_azure_metrics_…
…source
- Loading branch information
1 parent
df9b4b0
commit 9d5d99d
Showing
4 changed files
with
72 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
--- | ||
layout: "sumologic" | ||
page_title: "SumoLogic: sumologic_azure_metrics_source" | ||
description: |- | ||
Provides a Sumologic Azure Metrics Source. | ||
--- | ||
|
||
# sumologic_azure_metrics_source | ||
Provides a [Sumologic Azure Metrics Source](https://help.sumologic.com/docs/send-data/hosted-collectors/microsoft-source/azure-metrics-source/) | ||
|
||
__IMPORTANT:__ The Azure Event Hub credentials are stored in plain-text in the state. This is a potential security issue. | ||
|
||
## Example Usage | ||
```hcl | ||
resource "sumologic_azure_metrics_source" "terraform_azure_metrics_source" { | ||
name = "Azure Metrics Source" | ||
description = "My description" | ||
category = "azure/metrics" | ||
content_type = "AzureMetrics" | ||
collector_id = "${sumologic_collector.collector.id}" | ||
authentication { | ||
type = "AzureClientSecretAuthentication" | ||
tenant_id = "azure_tenant_id" | ||
client_id = "azure_client_id" | ||
client_secret = "azure_client_secret" | ||
} | ||
path { | ||
type = "AzureMetricsPath" | ||
environment = "Azure" | ||
limit_to_namespaces = ["Microsoft.ClassicStorage/storageAccounts"] | ||
azure_tag_filters { | ||
type = "AzureTagFilters" | ||
namespace = "Microsoft.ClassicStorage/storageAccounts" | ||
tags { | ||
name = "test-name-1" | ||
values = ["value1", "value2"] | ||
} | ||
} | ||
} | ||
} | ||
resource "sumologic_collector" "collector" { | ||
name = "my-collector" | ||
description = "Just testing this" | ||
} | ||
``` | ||
|
||
## Argument reference | ||
In addition to the [Common Source Properties](https://registry.terraform.io/providers/SumoLogic/sumologic/latest/docs#common-source-properties), the following arguments are supported: | ||
- `content_type` - (Required) Must be `AzureMetrics`. | ||
- `authentication` - (Required) Authentication details for connecting to ingest metrics from Azure. | ||
+ `type` - (Required) Must be `AzureClientSecretAuthentication`. | ||
+ `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). | ||
+ `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). | ||
+ `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). | ||
- `path` - (Required) The location to scan for new data. | ||
+ `type` - (Required) Must be `AzureMetricsPath`. | ||
+ `environment` - (Required) The environment to collect Azure metrics. | ||
+ `limit_to_namespaces` - (Opitonal) The list of namespaces to collect metrics. By default all namespaces are selected. | ||
+ `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 namespaces you configured for the source above. | ||
+ `type` - (Required) This value has to be set to `AzureTagFilters` | ||
+ `namespace` - Namespace for which you want to define the tag filters. | ||
+ `tags` - List of key and value list of tag filters. | ||
+ `name`: The name of tag. | ||
+ `values`: The list of accepted values for the tag name. |