-
Notifications
You must be signed in to change notification settings - Fork 251
/
Copy pathdata-source.tf
45 lines (36 loc) · 1.09 KB
/
data-source.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
resource "grafana_cloud_provider_azure_credential" "test" {
stack_id = "1"
name = "test-name"
client_id = "my-client-id"
client_secret = "my-client-secret"
tenant_id = "my-tenant-id"
resource_discovery_tag_filter {
key = "key-1"
value = "value-1"
}
resource_discovery_tag_filter {
key = "key-2"
value = "value-2"
}
auto_discovery_configuration {
subscription_id = "my-subscription_id"
resource_type_configurations {
resource_type_name = "Microsoft.App/containerApps"
metric_configuration {
name = "TotalCoresQuotaUsed"
}
}
resource_type_configurations {
resource_type_name = "Microsoft.Storage/storageAccounts/tableServices"
metric_configuration {
name = "Availability"
dimensions = ["GeoType", "ApiName"]
aggregations = ["Average"]
}
}
}
}
data "grafana_cloud_provider_azure_credential" "test" {
stack_id = grafana_cloud_provider_azure_credential.test.stack_id
resource_id = grafana_cloud_provider_azure_credential.test.resource_id
}