Skip to content

Commit

Permalink
feat: add variable new_group_delay
Browse files Browse the repository at this point in the history
  • Loading branch information
djagoudel-claranet committed Sep 29, 2022
1 parent 5bfa31a commit 753ba0f
Show file tree
Hide file tree
Showing 223 changed files with 946 additions and 1 deletion.
3 changes: 3 additions & 0 deletions caas/docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Creates DataDog monitors with the following checks:
- Docker Container Memory Used (disabled by default)
- Docker does not respond

<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -63,6 +64,7 @@ Creates DataDog monitors with the following checks:
| <a name="input_memory_used_time_aggregator"></a> [memory\_used\_time\_aggregator](#input\_memory\_used\_time\_aggregator) | Time aggregator for the Container Memory Usage monitor | `string` | `"min"` | no |
| <a name="input_memory_used_timeframe"></a> [memory\_used\_timeframe](#input\_memory\_used\_timeframe) | Timeframe for the Container Memory Usage monitor | `string` | `"last_5m"` | no |
| <a name="input_message"></a> [message](#input\_message) | Message sent when an alert is triggered | `any` | n/a | yes |
| <a name="input_new_group_delay"></a> [new\_group\_delay](#input\_new\_group\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_new_host_delay"></a> [new\_host\_delay](#input\_new\_host\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_not_responding_enabled"></a> [not\_responding\_enabled](#input\_not\_responding\_enabled) | Flag to enable Docker does not respond monitor | `string` | `"true"` | no |
| <a name="input_not_responding_extra_tags"></a> [not\_responding\_extra\_tags](#input\_not\_responding\_extra\_tags) | Extra tags for Docker does not respond monitor | `list(string)` | `[]` | no |
Expand All @@ -78,6 +80,7 @@ Creates DataDog monitors with the following checks:
|------|-------------|
| <a name="output_memory_used_id"></a> [memory\_used\_id](#output\_memory\_used\_id) | id for monitor memory\_used |
| <a name="output_not_responding_id"></a> [not\_responding\_id](#output\_not\_responding\_id) | id for monitor not\_responding |
<!-- END_TF_DOCS -->
## Related documentation

* [Datadog Docker integration](https://docs.datadoghq.com/integrations/docker_daemon/)
10 changes: 10 additions & 0 deletions caas/docker/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ variable "new_host_delay" {
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "prefix_slug" {
description = "Prefix string to prepend between brackets on every monitors names"
default = ""
Expand Down
2 changes: 2 additions & 0 deletions caas/docker/monitors-docker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
no_data_timeframe = var.not_responding_no_data_timeframe
notify_no_data = var.notify_no_data
notify_audit = false
Expand Down Expand Up @@ -48,6 +49,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down
3 changes: 3 additions & 0 deletions caas/kubernetes/ark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Creates DataDog monitors with the following checks:

- Ark backup failed

<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -59,6 +60,7 @@ Creates DataDog monitors with the following checks:
| <a name="input_filter_tags_custom_excluded"></a> [filter\_tags\_custom\_excluded](#input\_filter\_tags\_custom\_excluded) | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no |
| <a name="input_filter_tags_use_defaults"></a> [filter\_tags\_use\_defaults](#input\_filter\_tags\_use\_defaults) | Use default filter tags convention | `string` | `"true"` | no |
| <a name="input_message"></a> [message](#input\_message) | Message sent when a monitor is triggered | `any` | n/a | yes |
| <a name="input_new_group_delay"></a> [new\_group\_delay](#input\_new\_group\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_new_host_delay"></a> [new\_host\_delay](#input\_new\_host\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_notify_no_data"></a> [notify\_no\_data](#input\_notify\_no\_data) | Will raise no data alert if set to true | `bool` | `true` | no |
| <a name="input_prefix_slug"></a> [prefix\_slug](#input\_prefix\_slug) | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no |
Expand All @@ -68,6 +70,7 @@ Creates DataDog monitors with the following checks:
| Name | Description |
|------|-------------|
| <a name="output_ark_schedules_monitor_id"></a> [ark\_schedules\_monitor\_id](#output\_ark\_schedules\_monitor\_id) | id for monitor ark\_schedules\_monitor |
<!-- END_TF_DOCS -->
## Related documentation

DataDog blog: https://www.datadoghq.com/blog/monitor-prometheus-metrics
Expand Down
10 changes: 10 additions & 0 deletions caas/kubernetes/ark/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ variable "new_host_delay" {
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "prefix_slug" {
description = "Prefix string to prepend between brackets on every monitors names"
default = ""
Expand Down
1 change: 1 addition & 0 deletions caas/kubernetes/ark/monitors-ark.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
no_data_timeframe = var.ark_schedules_monitor_no_data_timeframe

notify_no_data = var.notify_no_data
Expand Down
3 changes: 3 additions & 0 deletions caas/kubernetes/cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Creates DataDog monitors with the following checks:

- Kubernetes API server does not respond

<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -59,6 +60,7 @@ Creates DataDog monitors with the following checks:
| <a name="input_filter_tags_custom_excluded"></a> [filter\_tags\_custom\_excluded](#input\_filter\_tags\_custom\_excluded) | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no |
| <a name="input_filter_tags_use_defaults"></a> [filter\_tags\_use\_defaults](#input\_filter\_tags\_use\_defaults) | Use default filter tags convention | `string` | `"true"` | no |
| <a name="input_message"></a> [message](#input\_message) | Message sent when a monitor is triggered | `any` | n/a | yes |
| <a name="input_new_group_delay"></a> [new\_group\_delay](#input\_new\_group\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_new_host_delay"></a> [new\_host\_delay](#input\_new\_host\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_notify_no_data"></a> [notify\_no\_data](#input\_notify\_no\_data) | Will raise no data alert if set to true | `bool` | `true` | no |
| <a name="input_prefix_slug"></a> [prefix\_slug](#input\_prefix\_slug) | Prefix string to prepend between brackets on every monitors names | `string` | `""` | no |
Expand All @@ -68,6 +70,7 @@ Creates DataDog monitors with the following checks:
| Name | Description |
|------|-------------|
| <a name="output_apiserver_id"></a> [apiserver\_id](#output\_apiserver\_id) | id for monitor apiserver |
<!-- END_TF_DOCS -->
## Related documentation

* [Datadog metrics](https://docs.datadoghq.com/agent/kubernetes/metrics/)
Expand Down
10 changes: 10 additions & 0 deletions caas/kubernetes/cluster/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ variable "new_host_delay" {
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "prefix_slug" {
description = "Prefix string to prepend between brackets on every monitors names"
default = ""
Expand Down
1 change: 1 addition & 0 deletions caas/kubernetes/cluster/monitors-k8s-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = var.notify_no_data
no_data_timeframe = var.apiserver_no_data_timeframe
renotify_interval = 0
Expand Down
2 changes: 2 additions & 0 deletions caas/kubernetes/ingress/vts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Creates DataDog monitors with the following checks:
- Nginx Ingress 4xx errors
- Nginx Ingress 5xx errors

<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -83,6 +84,7 @@ Creates DataDog monitors with the following checks:
|------|-------------|
| <a name="output_nginx_ingress_too_many_4xx_id"></a> [nginx\_ingress\_too\_many\_4xx\_id](#output\_nginx\_ingress\_too\_many\_4xx\_id) | id for monitor nginx\_ingress\_too\_many\_4xx |
| <a name="output_nginx_ingress_too_many_5xx_id"></a> [nginx\_ingress\_too\_many\_5xx\_id](#output\_nginx\_ingress\_too\_many\_5xx\_id) | id for monitor nginx\_ingress\_too\_many\_5xx |
<!-- END_TF_DOCS -->
## Related documentation

DataDog blog: https://www.datadoghq.com/blog/monitor-prometheus-metrics
Expand Down
10 changes: 10 additions & 0 deletions caas/kubernetes/ingress/vts/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ variable "new_host_delay" {
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "prefix_slug" {
description = "Prefix string to prepend between brackets on every monitors names"
default = ""
Expand Down
2 changes: 2 additions & 0 deletions caas/kubernetes/ingress/vts/monitors-ingress.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -49,6 +50,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down
3 changes: 3 additions & 0 deletions caas/kubernetes/node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks:
- Kubernetes Node volume inodes usage
- Kubernetes Node volume space usage

<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -94,6 +95,7 @@ Creates DataDog monitors with the following checks:
| <a name="input_memory_pressure_message"></a> [memory\_pressure\_message](#input\_memory\_pressure\_message) | Custom message for Memory pressure monitor | `string` | `""` | no |
| <a name="input_memory_pressure_threshold_warning"></a> [memory\_pressure\_threshold\_warning](#input\_memory\_pressure\_threshold\_warning) | Memory pressure monitor (warning threshold) | `string` | `3` | no |
| <a name="input_message"></a> [message](#input\_message) | Message sent when a monitor is triggered | `any` | n/a | yes |
| <a name="input_new_group_delay"></a> [new\_group\_delay](#input\_new\_group\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_new_host_delay"></a> [new\_host\_delay](#input\_new\_host\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_node_unschedulable_enabled"></a> [node\_unschedulable\_enabled](#input\_node\_unschedulable\_enabled) | Flag to enable node unschedulable monitor | `string` | `"true"` | no |
| <a name="input_node_unschedulable_extra_tags"></a> [node\_unschedulable\_extra\_tags](#input\_node\_unschedulable\_extra\_tags) | Extra tags for node unschedulable monitor | `list(string)` | `[]` | no |
Expand Down Expand Up @@ -141,6 +143,7 @@ Creates DataDog monitors with the following checks:
| <a name="output_unregister_net_device_id"></a> [unregister\_net\_device\_id](#output\_unregister\_net\_device\_id) | id for monitor unregister\_net\_device |
| <a name="output_volume_inodes_id"></a> [volume\_inodes\_id](#output\_volume\_inodes\_id) | id for monitor volume\_inodes |
| <a name="output_volume_space_id"></a> [volume\_space\_id](#output\_volume\_space\_id) | id for monitor volume\_space |
<!-- END_TF_DOCS -->
## Related documentation

* [Datadog metrics](https://docs.datadoghq.com/agent/kubernetes/metrics/)
Expand Down
10 changes: 10 additions & 0 deletions caas/kubernetes/node/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ variable "new_host_delay" {
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "prefix_slug" {
description = "Prefix string to prepend between brackets on every monitors names"
default = ""
Expand Down
10 changes: 10 additions & 0 deletions caas/kubernetes/node/monitors-k8s-node.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -41,6 +42,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -68,6 +70,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -95,6 +98,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -122,6 +126,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = var.notify_no_data
no_data_timeframe = var.kubelet_ping_no_data_timeframe
renotify_interval = 0
Expand Down Expand Up @@ -150,6 +155,7 @@ EOQ
}

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand All @@ -172,6 +178,7 @@ resource "datadog_monitor" "unregister_net_device" {
EOQ

new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -200,6 +207,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -231,6 +239,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -262,6 +271,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down
3 changes: 3 additions & 0 deletions caas/kubernetes/pod/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Creates DataDog monitors with the following checks:
- Kubernetes Pod terminated abnormally
- Kubernetes Pod waiting errors

<!-- BEGIN_TF_DOCS -->
## Requirements

| Name | Version |
Expand Down Expand Up @@ -67,6 +68,7 @@ Creates DataDog monitors with the following checks:
| <a name="input_filter_tags_custom_excluded"></a> [filter\_tags\_custom\_excluded](#input\_filter\_tags\_custom\_excluded) | Tags excluded for custom filtering when filter\_tags\_use\_defaults is false | `string` | `""` | no |
| <a name="input_filter_tags_use_defaults"></a> [filter\_tags\_use\_defaults](#input\_filter\_tags\_use\_defaults) | Use default filter tags convention | `string` | `"true"` | no |
| <a name="input_message"></a> [message](#input\_message) | Message sent when a monitor is triggered | `any` | n/a | yes |
| <a name="input_new_group_delay"></a> [new\_group\_delay](#input\_new\_group\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_new_host_delay"></a> [new\_host\_delay](#input\_new\_host\_delay) | Delay in seconds before monitor new resource | `number` | `300` | no |
| <a name="input_notify_no_data"></a> [notify\_no\_data](#input\_notify\_no\_data) | Will raise no data alert if set to true | `bool` | `true` | no |
| <a name="input_pod_group_by"></a> [pod\_group\_by](#input\_pod\_group\_by) | Select group by element on monitors (error and terminated) | `list` | <pre>[<br> "namespace",<br> "pod",<br> "reason",<br> "kube_cluster_name"<br>]</pre> | no |
Expand All @@ -92,6 +94,7 @@ Creates DataDog monitors with the following checks:
| <a name="output_error_id"></a> [error\_id](#output\_error\_id) | id for monitor error |
| <a name="output_pod_phase_status_id"></a> [pod\_phase\_status\_id](#output\_pod\_phase\_status\_id) | id for monitor pod\_phase\_status |
| <a name="output_terminated_id"></a> [terminated\_id](#output\_terminated\_id) | id for monitor terminated |
<!-- END_TF_DOCS -->
## Related documentation

* [Datadog metrics](https://docs.datadoghq.com/agent/kubernetes/metrics/)
Expand Down
10 changes: 10 additions & 0 deletions caas/kubernetes/pod/inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ variable "new_host_delay" {
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "new_group_delay" {
description = "Delay in seconds before monitor new resource"
default = 300
}

variable "prefix_slug" {
description = "Prefix string to prepend between brackets on every monitors names"
default = ""
Expand Down
3 changes: 3 additions & 0 deletions caas/kubernetes/pod/monitors-k8s-pod.tf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay

notify_no_data = false
renotify_interval = 0
Expand Down Expand Up @@ -46,6 +47,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down Expand Up @@ -76,6 +78,7 @@ EOQ

evaluation_delay = var.evaluation_delay
new_host_delay = var.new_host_delay
new_group_delay = var.new_group_delay
notify_no_data = false
renotify_interval = 0
notify_audit = false
Expand Down
Loading

0 comments on commit 753ba0f

Please sign in to comment.