24 lines
894 B
Markdown
24 lines
894 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 "kafka-clusters" {
|
|
source = "../../modules/util/resource-list"
|
|
resource-type = "kafka"
|
|
}
|
|
|
|
module "kafka-monitoring" {
|
|
cw-alarm-prefix = local.cw-alarm-prefix
|
|
for_each = module.kafka-clusters.result-set
|
|
source = "../../modules/ManagementGovernance/Monitoring.Kafka"
|
|
default-tags = local.default-tags
|
|
cluster-name = each.value
|
|
threshold-ZooKeeperRequestLatencyMsMean = 30
|
|
actions-enabled = var.actions-enabled
|
|
sns-targets = var.sns-targets
|
|
}
|
|
``` |