forked from notablehealth/terraform-google-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoutputs.tf
More file actions
143 lines (129 loc) · 4.09 KB
/
outputs.tf
File metadata and controls
143 lines (129 loc) · 4.09 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
#output "output_name" {
# description = "output value description"
# value = # expression or reference to value
#}
# Alert Policies
output "alert_policy_channel_names" {
description = "Notification channels referenced by alert policies"
value = module.alert_policies[*].channel_names
}
# Dashboards
output "dashboards" {
description = "List of dashboard objects"
value = module.dashboards[*].dashboards
}
#output "dashboard_ids" {
# description = "List of dashboard IDs"
# value = module.dashboards[*].ids
#}
# Groups
output "groups_parents" {
description = "Root parent groups"
value = module.groups[*].parents
}
output "groups_subgroups1" {
description = "Subgroups - level 1"
value = module.groups[*].subgroups1
}
output "groups_subgroups2" {
description = "Subgroups - level 2"
value = module.groups[*].subgroups2
}
output "groups_r_subgroups1" {
description = "Resource: subgroups level 1"
value = module.groups[*].r_subgroups1
}
output "groups_r_subgroups2" {
description = "Resource: subgroups level 2"
value = module.groups[*].r_subgroups2
}
# Log Metrics
#output "log_metric_ids" {
# description = "List of log metric IDs"
# value = module.log_metrics[*].ids
#}
output "logging_metrics" {
description = "All logging metric objects - for debugging"
value = module.log_metrics[*].logging_metrics
}
# Logging
output "logging_bucket_config" {
description = "Full config of the logging bucket config"
value = module.logging[*].logging_bucket_config
}
# Metric Descriptors
output "metric_descriptor_names" {
description = "List of metric descriptor names"
value = module.metric_descriptors[*].names
}
output "metric_descriptor_monitored_resource_types" {
description = "List of metric descriptor monitored resource types"
value = module.metric_descriptors[*].monitored_resource_types
}
# Notification Channels
output "notification_channel_pagerduty_refs" {
description = "List of pagerduty service key references"
value = module.notification_channels[*].channel_pagerduty_refs
}
output "notification_channel_secret_refs" {
description = "List of Google secret manager secret references"
value = module.notification_channels[*].channel_secret_refs
}
output "notification_channel_pagerduty_integrations" {
description = "Pagerduty integrations"
value = module.notification_channels[*].pagerduty_integrations
sensitive = true
}
#output "secrets" {
# description = "Secrets"
# value = module.notification_channels.secrets
# sensitive = true
#}
# Project Scope
output "metrics_scope_project" {
description = "Metrics scope project ID"
value = module.project_scope[*].metrics_scope_project
}
#output "metrics_scoped_projects" {
# description = "Metrics scoped projects. All projects that metrics are being collected from"
# value = module.project_scope[*].metrics_scoped_projects
#}
output "metrics_scope_monitored_projects" {
description = "Monitored projects - Full data for debugging"
value = module.project_scope[*].monitored_projects
}
output "metric_scope_projects" {
description = "GCP project settings before any changes"
value = module.project_scope[*].projects
}
# Services
output "service_ids" {
description = "List of service IDs"
value = module.services[*].service_ids
}
output "service_telemetry" {
description = "List of service telemetry"
value = module.services[*].service_telemetry
}
output "custom_service_ids" {
description = "List of custom service IDs"
value = module.services[*].custom_service_ids
}
output "custom_service_telemetry" {
description = "List of custom service telemetry"
value = module.services[*].custom_service_telemetry
}
# SLOs
output "slo_ids" {
description = "List of SLO IDs"
value = module.slo[*].ids
}
# Uptime Checks
output "uptime_check_ids" {
description = "The IDs of the uptime checks."
value = module.uptime_checks[*].ids
}
output "uptime_checks" {
description = "All uptime checks managed"
value = module.uptime_checks[*].uptime_checks
}