Module for managing Google Cloud Monitoring
- Goal is to support all Google Cloud Monitoring resources that Terraform supports
- Submodules can be called directly
- Wrapper module to call all submodules
Submodules can be used directly. Some may not be included in the root wrapper module.
Basic usage of this module is as follows:
module "example" {
source = "notablehealth/<module>/google"
# Recommend pinning every module to a specific version
# version = "x.x.x"
# Required variables
gcp_project =
}
Name | Version |
---|---|
terraform | >= 1.5.7 |
No providers.
Name | Source | Version |
---|---|---|
alert_policies | ./modules/alert-policies | n/a |
dashboards | ./modules/dashboards | n/a |
groups | ./modules/groups | n/a |
log_metrics | ./modules/log-metrics | n/a |
logging | ./modules/logging | n/a |
metric_descriptors | ./modules/metric-descriptors | n/a |
notification_channels | ./modules/notification-channels | n/a |
project_scope | ./modules/project-scope | n/a |
services | ./modules/services | n/a |
slo | ./modules/slo | n/a |
uptime_checks | ./modules/uptime-checks | n/a |
No resources.
Name | Description | Type | Default | Required |
---|---|---|---|---|
alert_policies | Alert policy configuration objects | list(object({ |
[ |
no |
custom_services | List of Custom Service configuration objects | list(object({ |
[] |
no |
dashboard_sources_path | Path to process dashboard source files | string |
"" |
no |
dashboard_sources_pattern | Dashboard json files pattern | string |
"**" |
no |
enable_alert_policies | Enable managing Alert Polices | bool |
false |
no |
enable_dashboards | Enable managing Dashboards | bool |
false |
no |
enable_groups | Enable managing Groups | bool |
false |
no |
enable_log_metrics | Enable managing Log Metrics | bool |
false |
no |
enable_logging | Enable managing central Logging | bool |
false |
no |
enable_metric_descriptors | Enable managing Metric Descriptors | bool |
false |
no |
enable_notification_channels | Enable managing Notification Channels | bool |
false |
no |
enable_project_scope | Enable managing Project metric scopes | bool |
false |
no |
enable_services | Enable managing Services | bool |
false |
no |
enable_slo | Enable managing SLOs | bool |
false |
no |
enable_uptime_checks | Enable managing Uptime Checks | bool |
false |
no |
gcp_project | GCP project to put monitoring in | string |
n/a | yes |
groups | List of group confiiguration object | list(object({ |
[ |
no |
logging_bucket | Logging Bucket name | string |
"" |
no |
logging_metrics | List of logging metric configuration objects | list(object({ |
[ |
no |
metric_descriptors | List of Metric Dedscriptor configuration objects | list(object({ |
[ |
no |
notification_channels | Notification channel configuration objects | list(object({ |
[ |
no |
organization_name | Organization name | string |
"" |
no |
organization_sink | Organization Sink name | string |
"" |
no |
services | List of Service configuration objects | list(object({ |
[ |
no |
slos | List of SLO configuration objects | list(object({ |
[ |
no |
uptime_checks | Uptime check configuration objects | list(object({ |
[ |
no |
Name | Description |
---|---|
alert_policy_channel_names | Notification channels referenced by alert policies |
custom_service_ids | List of custom service IDs |
custom_service_telemetry | List of custom service telemetry |
dashboards | List of dashboard objects |
groups_parents | Root parent groups |
groups_r_subgroups1 | Resource: subgroups level 1 |
groups_r_subgroups2 | Resource: subgroups level 2 |
groups_subgroups1 | Subgroups - level 1 |
groups_subgroups2 | Subgroups - level 2 |
logging_bucket_config | Full config of the logging bucket config |
logging_metrics | All logging metric objects - for debugging |
metric_descriptor_monitored_resource_types | List of metric descriptor monitored resource types |
metric_descriptor_names | List of metric descriptor names |
metric_scope_projects | GCP project settings before any changes |
metrics_scope_monitored_projects | Monitored projects - Full data for debugging |
metrics_scope_project | Metrics scope project ID |
notification_channel_pagerduty_integrations | Pagerduty integrations |
notification_channel_pagerduty_refs | List of pagerduty service key references |
notification_channel_secret_refs | List of Google secret manager secret references |
service_ids | List of service IDs |
service_telemetry | List of service telemetry |
slo_ids | List of SLO IDs |
uptime_check_ids | The IDs of the uptime checks. |
uptime_checks | All uptime checks managed |