forked from kabisa/terraform-datadog-costs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogs-metrics-generation.tf
60 lines (51 loc) · 1018 Bytes
/
logs-metrics-generation.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
resource "datadog_logs_metric" "ingested_bytes" {
name = "custom_datadog.estimated_usage.logs.ingested_bytes"
compute {
aggregation_type = "distribution"
path = "ingest_size_in_bytes"
}
filter {
query = "*"
}
group_by {
path = "service"
tag_name = "service"
}
group_by {
path = "datadog_index"
tag_name = "datadog_index"
}
group_by {
path = "host"
tag_name = "host"
}
}
resource "datadog_logs_metric" "ingested_events" {
name = "custom_datadog.estimated_usage.logs.ingested_events"
compute {
aggregation_type = "count"
}
filter {
query = "*"
}
group_by {
path = "datadog_is_excluded"
tag_name = "datadog_is_excluded"
}
group_by {
path = "service"
tag_name = "service"
}
group_by {
path = "status"
tag_name = "status"
}
group_by {
path = "datadog_index"
tag_name = "datadog_index"
}
group_by {
path = "host"
tag_name = "host"
}
}