diff --git a/caas/kubernetes/ark/README.md b/caas/kubernetes/ark/README.md index 1950b0c..2a102bf 100644 --- a/caas/kubernetes/ark/README.md +++ b/caas/kubernetes/ark/README.md @@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | ark\_schedules\_enabled | Flag to enable Ark schedules monitor | string | `"true"` | no | -| ark\_schedules\_extra\_tags | Extra tags for Ark schedules monitor | list | `[]` | no | +| ark\_schedules\_extra\_tags | Extra tags for Ark schedules monitor | list(string) | `[]` | no | | ark\_schedules\_monitor\_message | Custom message for Ark schedules monitor | string | `""` | no | | ark\_schedules\_monitor\_no\_data\_timeframe | No data timeframe in minutes | string | `"1440"` | no | | ark\_schedules\_monitor\_timeframe | Monitor timeframe for Ark schedules monitor [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_1d"` | no | diff --git a/caas/kubernetes/cluster/README.md b/caas/kubernetes/cluster/README.md index 21c1dc4..088caef 100644 --- a/caas/kubernetes/cluster/README.md +++ b/caas/kubernetes/cluster/README.md @@ -23,7 +23,7 @@ Creates DataDog monitors with the following checks: | Name | Description | Type | Default | Required | |------|-------------|:----:|:-----:|:-----:| | apiserver\_enabled | Flag to enable API server monitor | string | `"true"` | no | -| apiserver\_extra\_tags | Extra tags for API server monitor | list | `[]` | no | +| apiserver\_extra\_tags | Extra tags for API server monitor | list(string) | `[]` | no | | apiserver\_message | Custom message for API server monitor | string | `""` | no | | apiserver\_threshold\_warning | API server monitor (warning threshold) | string | `"3"` | no | | environment | Architecture environment | string | n/a | yes | diff --git a/caas/kubernetes/ingress/vts/README.md b/caas/kubernetes/ingress/vts/README.md index 6ab32ac..9e12ad1 100644 --- a/caas/kubernetes/ingress/vts/README.md +++ b/caas/kubernetes/ingress/vts/README.md @@ -16,8 +16,8 @@ module "datadog-monitors-caas-kubernetes-ingress-vts" { Creates DataDog monitors with the following checks: -- Nginx Ingress 4xx errors - Nginx Ingress 5xx errors +- Nginx Ingress 4xx errors ## Inputs @@ -30,14 +30,14 @@ Creates DataDog monitors with the following checks: | filter\_tags\_custom\_excluded | Tags excluded for custom filtering when filter_tags_use_defaults is false | string | `""` | no | | filter\_tags\_use\_defaults | Use default filter tags convention | string | `"true"` | no | | ingress\_4xx\_enabled | Flag to enable Ingress 4xx errors monitor | string | `"true"` | no | -| ingress\_4xx\_extra\_tags | Extra tags for Ingress 4xx errors monitor | list | `[]` | no | +| ingress\_4xx\_extra\_tags | Extra tags for Ingress 4xx errors monitor | list(string) | `[]` | no | | ingress\_4xx\_message | Message sent when an alert is triggered | string | `""` | no | | ingress\_4xx\_threshold\_critical | 4xx critical threshold in percentage | string | `"40"` | no | | ingress\_4xx\_threshold\_warning | 4xx warning threshold in percentage | string | `"20"` | no | | ingress\_4xx\_time\_aggregator | Monitor aggregator for Ingress 4xx errors [available values: min, max or avg] | string | `"min"` | no | | ingress\_4xx\_timeframe | Monitor timeframe for Ingress 4xx errors [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `"last_5m"` | no | | ingress\_5xx\_enabled | Flag to enable Ingress 5xx errors monitor | string | `"true"` | no | -| ingress\_5xx\_extra\_tags | Extra tags for Ingress 5xx errors monitor | list | `[]` | no | +| ingress\_5xx\_extra\_tags | Extra tags for Ingress 5xx errors monitor | list(string) | `[]` | no | | ingress\_5xx\_message | Message sent when an alert is triggered | string | `""` | no | | ingress\_5xx\_threshold\_critical | 5xx critical threshold in percentage | string | `"20"` | no | | ingress\_5xx\_threshold\_warning | 5xx warning threshold in percentage | string | `"10"` | no | diff --git a/caas/kubernetes/ingress/vts/monitors-ingress.tf b/caas/kubernetes/ingress/vts/monitors-ingress.tf index d665ad7..ebdecf1 100644 --- a/caas/kubernetes/ingress/vts/monitors-ingress.tf +++ b/caas/kubernetes/ingress/vts/monitors-ingress.tf @@ -2,7 +2,7 @@ resource "datadog_monitor" "nginx_ingress_too_many_5xx" { count = var.ingress_5xx_enabled == "true" ? 1 : 0 name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Nginx Ingress 5xx errors {{#is_alert}}{{{comparator}}} {{threshold}}% ({{value}}%){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}}% ({{value}}%){{/is_warning}}" message = coalesce(var.ingress_5xx_message, var.message) - type = "query alert" + type = "query alert" query = <>>>>>> MON-459 use concat for extra tags + type = "metric alert" -# -# Failover Unavailable -# -resource "datadog_monitor" "failover_unavailable" { -count = var.failover_unavailable_enabled == "true" ? 1 : 0 -name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] Cloud SQL Failover Unavailable" -message = coalesce(var.failover_unavailable_message, var.message) -type = "metric alert" - -query = <