25 lines
866 B
Markdown
25 lines
866 B
Markdown
# Monitoring module
|
|
This module deploys the default cloudwatch metric monitoring
|
|
|
|
## Notes
|
|
Terraform lifecycle ignores tags to speed up terraform subsequent update. Cloudwatch alarm tags cannot be read on aws console anyway.
|
|
|
|
## Example
|
|
```terraform
|
|
module "emr-clusters" {
|
|
source = "../../modules/util/resource-list"
|
|
resource-type = "emr"
|
|
}
|
|
|
|
module "emr-monitoring" {
|
|
cw-alarm-prefix = local.cw-alarm-prefix
|
|
for_each = module.emr-clusters.result-set
|
|
source = "../../modules/ManagementGovernance/Monitoring.EMR"
|
|
default-tags = local.default-tags
|
|
job-flow-id = split("/", each.value)[1]
|
|
threshold-AppsPending = 2
|
|
threshold-CapacityRemainingGB = 100
|
|
actions-enabled = var.actions-enabled
|
|
sns-targets = var.sns-targets
|
|
}
|
|
``` |