Merged in MON-301_update_monitors_using_new_filter_tags_with_exclude (pull request #171)

MON-301 update monitors using new filter tags module

Approved-by: Quentin Manfroi <quentin.manfroi@yahoo.fr>
Approved-by: Jérôme Respaut <shr3ps@gmail.com>
Approved-by: Patrick Decat <patrick.decat@fr.clara.net>
Approved-by: Laurent Piroelle <laurent.piroelle@fr.clara.net>
Approved-by: Alexandre Gaillet <alexandre.gaillet@fr.clara.net>
This commit is contained in:
Quentin Manfroi 2018-10-03 16:45:11 +00:00
commit 529453d317
107 changed files with 407 additions and 170 deletions

View File

@ -31,6 +31,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a monitor is triggered | string | - | yes | | message | Message sent when a monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -14,6 +14,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "ark" resource = "ark"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | 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_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 | `[]` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
#Ingress #Ingress
variable "ingress_5xx_silenced" { variable "ingress_5xx_silenced" {
description = "Groups to mute for Ingress 5xx errors monitor" description = "Groups to mute for Ingress 5xx errors monitor"

View File

@ -1,29 +1,32 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "ingress" resource = "ingress"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
extra_tags = ["!upstream:upstream-default-backend"] filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["!upstream:upstream-default-backend"]
} }
module "filter-tags-5xx" { module "filter-tags-5xx" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "ingress" resource = "ingress"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
extra_tags = ["!upstream:upstream-default-backend,status_code:5xx"] filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["!upstream:upstream-default-backend,status_code:5xx"]
} }
module "filter-tags-4xx" { module "filter-tags-4xx" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "ingress" resource = "ingress"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
extra_tags = ["!upstream:upstream-default-backend,status_code:4xx"] filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["!upstream:upstream-default-backend,status_code:4xx"]
} }

View File

@ -37,6 +37,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| httpcode_alb_4xx_enabled | Flag to enable ALB httpcode 4xx monitor | string | `true` | no | | httpcode_alb_4xx_enabled | Flag to enable ALB httpcode 4xx monitor | string | `true` | no |
| httpcode_alb_4xx_extra_tags | Extra tags for ALB httpcode 4xx monitor | list | `[]` | no | | httpcode_alb_4xx_extra_tags | Extra tags for ALB httpcode 4xx monitor | list | `[]` | no |

View File

@ -15,6 +15,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_alb" resource = "aws_alb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -45,6 +45,7 @@ Creates DataDog monitors with the following checks:
| eviction_threshold_warning | Elasticache free memory warning threshold in percentage | string | `0` | no | | eviction_threshold_warning | Elasticache free memory warning threshold in percentage | string | `0` | no |
| eviction_timeframe | Monitor timeframe for Elasticache eviction [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no | | eviction_timeframe | Monitor timeframe for Elasticache eviction [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| free_memory_condition_timeframe | Monitor condition timeframe for Elasticache free memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no | | free_memory_condition_timeframe | Monitor condition timeframe for Elasticache free memory [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_15m` | no |
| free_memory_enabled | Flag to enable Elasticache free memory monitor | string | `true` | no | | free_memory_enabled | Flag to enable Elasticache free memory monitor | string | `true` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Elasticache specific # Elasticache specific
variable "eviction_silenced" { variable "eviction_silenced" {
description = "Groups to mute for Elasticache eviction monitor" description = "Groups to mute for Elasticache eviction monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../../common/filter-tags" source = "../../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_elasticache" resource = "aws_elasticache"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -34,6 +34,7 @@ Creates DataDog monitors with the following checks:
| environment | Infrastructure Environment | string | - | yes | | environment | Infrastructure Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| get_hits_enabled | Flag to enable Elasticache memcached get hits monitor | string | `true` | no | | get_hits_enabled | Flag to enable Elasticache memcached get hits monitor | string | `true` | no |
| get_hits_extra_tags | Extra tags for Elasticache memcached get hits monitor | list | `[]` | no | | get_hits_extra_tags | Extra tags for Elasticache memcached get hits monitor | list | `[]` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Memcached specific # Memcached specific
variable "get_hits_silenced" { variable "get_hits_silenced" {
description = "Groups to mute for Elasticache memcached get hits monitor" description = "Groups to mute for Elasticache memcached get hits monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../../common/filter-tags" source = "../../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_elasticache" resource = "aws_elasticache"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -48,6 +48,7 @@ Creates DataDog monitors with the following checks:
| environment | Infrastructure Environment | string | - | yes | | environment | Infrastructure Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# redis specific # redis specific
variable "cache_hits_silenced" { variable "cache_hits_silenced" {
description = "Groups to mute for Elasticache redis cache hits monitor" description = "Groups to mute for Elasticache redis cache hits monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../../common/filter-tags" source = "../../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_elasticache" resource = "aws_elasticache"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -49,6 +49,7 @@ Creates DataDog monitors with the following checks:
| es_cluster_volume_size | ElasticSearch Domain volume size (in GB) | string | - | yes | | es_cluster_volume_size | ElasticSearch Domain volume size (in GB) | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# AWS ElasticSearch Service specific # AWS ElasticSearch Service specific
variable "es_cluster_status_silenced" { variable "es_cluster_status_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_elasticsearch" resource = "aws_elasticsearch"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -73,6 +73,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
## ELB ## ELB
variable "elb_no_healthy_instance_silenced" { variable "elb_no_healthy_instance_silenced" {
description = "Groups to mute for ELB no healty instance monitor" description = "Groups to mute for ELB no healty instance monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_elb" resource = "aws_elb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -25,6 +25,7 @@ Creates DataDog monitors with the following checks:
| environment | Environment | string | - | yes | | environment | Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| incoming_records_enabled | Flag to enable Kinesis Firehorse incoming records monitor | string | `true` | no | | incoming_records_enabled | Flag to enable Kinesis Firehorse incoming records monitor | string | `true` | no |
| incoming_records_extra_tags | Extra tags for Kinesis Firehorse incoming records monitor | list | `[]` | no | | incoming_records_extra_tags | Extra tags for Kinesis Firehorse incoming records monitor | list | `[]` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Kinesis-Firehose # Kinesis-Firehose
variable "incoming_records_silenced" { variable "incoming_records_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_kinesis-firehose" resource = "aws_kinesis-firehose"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -32,6 +32,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# AWS RDS Aurora instance specific # AWS RDS Aurora instance specific
variable "aurora_replicalag_silenced" { variable "aurora_replicalag_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../../../common/filter-tags" source = "../../../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_rds" resource = "aws_rds"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -32,6 +32,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# AWS RDS Aurora instance specific # AWS RDS Aurora instance specific
variable "aurora_replicalag_silenced" { variable "aurora_replicalag_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../../../common/filter-tags" source = "../../../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_rds" resource = "aws_rds"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -43,6 +43,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# AWS RDS instance specific # AWS RDS instance specific
variable "cpu_silenced" { variable "cpu_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../../common/filter-tags" source = "../../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "aws_rds" resource = "aws_rds"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -36,6 +36,7 @@ Creates DataDog monitors with the following checks:
| failed_requests_threshold_warning | Warning regarding acceptable percent of failed requests | string | `50` | no | | failed_requests_threshold_warning | Warning regarding acceptable percent of failed requests | string | `50` | no |
| failed_requests_timeframe | Monitor timeframe for API Management failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | failed_requests_timeframe | Monitor timeframe for API Management failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a Redis monitor is triggered | string | - | yes | | message | Message sent when a Redis monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure API Management specific # Azure API Management specific
variable "status_silenced" { variable "status_silenced" {
description = "Groups to mute for API Management status monitor" description = "Groups to mute for API Management status monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "apimanagement" resource = "apimanagement"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -29,6 +29,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| http_4xx_requests_enabled | Flag to enable App Services 4xx requests monitor | string | `true` | no | | http_4xx_requests_enabled | Flag to enable App Services 4xx requests monitor | string | `true` | no |
| http_4xx_requests_extra_tags | Extra tags for App Services 4xx requests monitor | list | `[]` | no | | http_4xx_requests_extra_tags | Extra tags for App Services 4xx requests monitor | list | `[]` | no |

View File

@ -13,6 +13,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "app-services" resource = "app-services"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -52,6 +52,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a monitor is triggered | string | - | yes | | message | Message sent when a monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -13,6 +13,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,19 +1,21 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "cosmosdb" resource = "cosmosdb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }
module "filter-tags-statuscode" { module "filter-tags-statuscode" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "cosmosdb" resource = "cosmosdb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom},statuscode:%s" filter_tags_custom = "${var.filter_tags_custom},statuscode:%s"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["statuscode:%s"] extra_tags = ["statuscode:%s"]
} }

View File

@ -25,6 +25,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a monitor is triggered | string | - | yes | | message | Message sent when a monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -13,6 +13,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "datalakestore" resource = "datalakestore"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -41,6 +41,7 @@ Creates DataDog monitors with the following checks:
| failed_requests_rate_thresold_warning | Failed requests ratio (percentage) to trigger a warning alert | string | `50` | no | | failed_requests_rate_thresold_warning | Failed requests ratio (percentage) to trigger a warning alert | string | `50` | no |
| failed_requests_rate_timeframe | Monitor timeframe for Event Hub failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | failed_requests_rate_timeframe | Monitor timeframe for Event Hub failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure Event Hub specific variables # Azure Event Hub specific variables
variable "status_silenced" { variable "status_silenced" {
description = "Groups to mute for Event Hub status monitor" description = "Groups to mute for Event Hub status monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "eventhub" resource = "eventhub"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -43,6 +43,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a monitor is triggered | string | - | yes | | message | Message sent when a monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -13,6 +13,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,19 +1,21 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "keyvault" resource = "keyvault"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }
module "filter-tags-statuscode" { module "filter-tags-statuscode" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "cosmosdb" resource = "cosmosdb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom},statuscode:%s" filter_tags_custom = "${var.filter_tags_custom},statuscode:%s"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["statuscode:%s"] extra_tags = ["statuscode:%s"]
} }

View File

@ -36,6 +36,7 @@ Creates DataDog monitors with the following checks:
| evictedkeys_limit_time_aggregator | Monitor aggregator for Redis evicted keys [available values: min, max or avg] | string | `avg` | no | | evictedkeys_limit_time_aggregator | Monitor aggregator for Redis evicted keys [available values: min, max or avg] | string | `avg` | no |
| evictedkeys_limit_timeframe | Monitor timeframe for Redis evicted keys [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | evictedkeys_limit_timeframe | Monitor timeframe for Redis evicted keys [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a Redis monitor is triggered | string | - | yes | | message | Message sent when a Redis monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure Redis specific variables # Azure Redis specific variables
variable "status_silenced" { variable "status_silenced" {
description = "Groups to mute for Redis status monitor" description = "Groups to mute for Redis status monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "redis" resource = "redis"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure Service Bus specific variables # Azure Service Bus specific variables
variable "status_enabled" { variable "status_enabled" {
description = "Flag to enable Service Bus status monitor" description = "Flag to enable Service Bus status monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "servicebus" resource = "servicebus"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -58,6 +58,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure SQL Database specific variables # Azure SQL Database specific variables
variable "cpu_silenced" { variable "cpu_silenced" {
description = "Groups to mute for SQL CPU monitor" description = "Groups to mute for SQL CPU monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "sql-database" resource = "sql-database"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -57,6 +57,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture environment | string | - | yes | | environment | Architecture environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `900` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| latency_enabled | Flag to enable Storage latency monitor | string | `true` | no | | latency_enabled | Flag to enable Storage latency monitor | string | `true` | no |
| latency_extra_tags | Extra tags for Storage latency monitor | list | `[]` | no | | latency_extra_tags | Extra tags for Storage latency monitor | list | `[]` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure Storage specific variables # Azure Storage specific variables
variable "availability_silenced" { variable "availability_silenced" {
description = "Groups to mute for Storage availability monitor" description = "Groups to mute for Storage availability monitor"

View File

@ -1,9 +1,10 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "storage" resource = "storage"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
extra_tags = ["transaction_type:all"] filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["transaction_type:all"]
} }

View File

@ -44,6 +44,7 @@ Creates DataDog monitors with the following checks:
| failed_function_requests_threshold_warning | Failed Function Request rate limit (warning threshold) | string | `0` | no | | failed_function_requests_threshold_warning | Failed Function Request rate limit (warning threshold) | string | `0` | no |
| failed_function_requests_timeframe | Monitor timeframe for Stream Analytics failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | failed_function_requests_timeframe | Monitor timeframe for Stream Analytics failed requests [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when a Redis monitor is triggered | string | - | yes | | message | Message sent when a Redis monitor is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Azure Stream Analytics specific variables # Azure Stream Analytics specific variables
variable "status_silenced" { variable "status_silenced" {
description = "Groups to mute for Stream Analytics status monitor" description = "Groups to mute for Stream Analytics status monitor"

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../../common/filter-tags" source = "../../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "stream-analytics" resource = "stream-analytics"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -104,6 +104,7 @@ Creates DataDog monitors with the following checks:
| field_data_evictions_change_timeframe | Timeframe for the Cluster Status monitor | string | `last_15m` | no | | field_data_evictions_change_timeframe | Timeframe for the Cluster Status monitor | string | `last_15m` | no |
| field_data_evictions_change_timeshift | Timeframe for the Cluster Status monitor | string | `last_15m` | no | | field_data_evictions_change_timeshift | Timeframe for the Cluster Status monitor | string | `last_15m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| flush_latency_enabled | Flag to enable Cluster Status monitor | string | `true` | no | | flush_latency_enabled | Flag to enable Cluster Status monitor | string | `true` | no |
| flush_latency_extra_tags | Extra tags for Cluster Status monitor | list | `[]` | no | | flush_latency_extra_tags | Extra tags for Cluster Status monitor | list | `[]` | no |

View File

@ -16,6 +16,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "message" { variable "message" {
description = "Message sent when a monitor is triggered" description = "Message sent when a monitor is triggered"
} }

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "elasticsearch" resource = "elasticsearch"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -7,7 +7,7 @@ resource "datadog_monitor" "not_responding" {
message = "${coalesce(var.not_responding_message, var.message)}" message = "${coalesce(var.not_responding_message, var.message)}"
query = <<EOL query = <<EOL
"elasticsearch.can_connect".over${module.filter-tags.service_check}.by("server","port").last(6).count_by_status() "elasticsearch.can_connect"${module.filter-tags.service_check}.by("server","port").last(6).count_by_status()
EOL EOL
type = "service check" type = "service check"

View File

@ -28,6 +28,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| mongodb_desired_servers_count | Number of servers that should be instanciated for this cluster | string | `3` | no | | mongodb_desired_servers_count | Number of servers that should be instanciated for this cluster | string | `3` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
variable "mongodb_desired_servers_count" { variable "mongodb_desired_servers_count" {
description = "Number of servers that should be instanciated for this cluster" description = "Number of servers that should be instanciated for this cluster"
default = 3 default = 3

View File

@ -1,18 +1,20 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "mongodb" resource = "mongodb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }
module "filter-tags-secondary" { module "filter-tags-secondary" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "mongodb" resource = "mongodb"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
extra_tags = ["replset_state:secondary"] filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
extra_tags = ["replset_state:secondary"]
} }

View File

@ -32,6 +32,7 @@ Creates DataDog monitors with the following checks:
| environment | Environment | string | - | yes | | environment | Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| mysql_aborted_enabled | Flag to enable MySQL aborted connects monitor | string | `true` | no | | mysql_aborted_enabled | Flag to enable MySQL aborted connects monitor | string | `true` | no |

View File

@ -27,6 +27,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# MySQL specific # MySQL specific
################################# #################################

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "mysql" resource = "mysql"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "mysql_availability" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"mysql.can_connect".over${module.filter-tags.service_check}.by("port","server").last(6).count_by_status() "mysql.can_connect"${module.filter-tags.service_check}.by("port","server").last(6).count_by_status()
EOF EOF
thresholds = { thresholds = {

View File

@ -27,6 +27,7 @@ Creates DataDog monitors with the following checks:
| environment | Environment | string | - | yes | | environment | Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds for the metric evaluation | string | `300` | no | | new_host_delay | Delay in seconds for the metric evaluation | string | `300` | no |

View File

@ -28,6 +28,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# PostgreSQL specific # PostgreSQL specific
################################## ##################################
### PostgreSQL availability ### ### PostgreSQL availability ###

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "postgres" resource = "postgres"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "postgresql_availability" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"postgres.can_connect".over${module.filter-tags.service_check}.by("port","server").last(6).count_by_status() "postgres.can_connect"${module.filter-tags.service_check}.by("port","server").last(6).count_by_status()
EOF EOF
thresholds = { thresholds = {

View File

@ -58,6 +58,7 @@ Creates DataDog monitors with the following checks:
| expirations_rate_time_aggregator | Monitor aggregator for Redis keys expirations [available values: min, max or avg] | string | `min` | no | | expirations_rate_time_aggregator | Monitor aggregator for Redis keys expirations [available values: min, max or avg] | string | `min` | no |
| expirations_rate_timeframe | Monitor timeframe for Redis keys expirations [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no | | expirations_rate_timeframe | Monitor timeframe for Redis keys expirations [available values: `last_#m` (1, 5, 10, 15, or 30), `last_#h` (1, 2, or 4), or `last_1d`] | string | `last_5m` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| hitrate_enabled | Flag to enable Redis hitrate monitor | string | `true` | no | | hitrate_enabled | Flag to enable Redis hitrate monitor | string | `true` | no |
| hitrate_extra_tags | Extra tags for Redis hitrate monitor | list | `[]` | no | | hitrate_extra_tags | Extra tags for Redis hitrate monitor | list | `[]` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Redis specific variables # Redis specific variables
variable "evictedkeys_change_silenced" { variable "evictedkeys_change_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "redis" resource = "redis"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -9,7 +9,7 @@ resource "datadog_monitor" "not_responding" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"redis.can_connect".over${module.filter-tags.service_check}.by("redis_host","redis_port").last(6).count_by_status() "redis.can_connect"${module.filter-tags.service_check}.by("redis_host","redis_port").last(6).count_by_status()
EOF EOF
thresholds { thresholds {

View File

@ -30,6 +30,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Apache Middleware specific # Apache Middleware specific
variable "apache_connect_silenced" { variable "apache_connect_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "apache" resource = "apache"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "datadog_apache_process" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"apache.can_connect".over${module.filter-tags.service_check}.by("host","port","server").last(1).pct_by_status() "apache.can_connect"${module.filter-tags.service_check}.by("host","port","server").last(1).pct_by_status()
EOF EOF
thresholds = { thresholds = {

View File

@ -26,6 +26,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# Nginx Middleware specific # Nginx Middleware specific
variable "nginx_connect_silenced" { variable "nginx_connect_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "nginx" resource = "nginx"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "datadog_nginx_process" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"nginx.can_connect".over${module.filter-tags.service_check}.by("server","port").last(6).count_by_status() "nginx.can_connect"${module.filter-tags.service_check}.by("server","port").last(6).count_by_status()
EOF EOF
thresholds = { thresholds = {

View File

@ -26,6 +26,7 @@ Creates DataDog monitors with the following checks:
| environment | Architecture Environment | string | - | yes | | environment | Architecture Environment | string | - | yes |
| evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no | | evaluation_delay | Delay in seconds for the metric evaluation | string | `15` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no | | filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| 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 | | filter_tags_use_defaults | Use default filter tags convention | string | `true` | no |
| message | Message sent when an alert is triggered | string | - | yes | | message | Message sent when an alert is triggered | string | - | yes |
| new_host_delay | Delay in seconds before monitor new resource | string | `300` | no | | new_host_delay | Delay in seconds before monitor new resource | string | `300` | no |

View File

@ -29,6 +29,11 @@ variable "filter_tags_custom" {
default = "*" default = "*"
} }
variable "filter_tags_custom_excluded" {
description = "Tags excluded for custom filtering when filter_tags_use_defaults is false"
default = ""
}
# PHP FPM Middleware specific # PHP FPM Middleware specific
variable "php_fpm_busy_silenced" { variable "php_fpm_busy_silenced" {

View File

@ -1,8 +1,9 @@
module "filter-tags" { module "filter-tags" {
source = "../../common/filter-tags" source = "../../common/filter-tags"
environment = "${var.environment}" environment = "${var.environment}"
resource = "php-fpm" resource = "php-fpm"
filter_tags_use_defaults = "${var.filter_tags_use_defaults}" filter_tags_use_defaults = "${var.filter_tags_use_defaults}"
filter_tags_custom = "${var.filter_tags_custom}" filter_tags_custom = "${var.filter_tags_custom}"
filter_tags_custom_excluded = "${var.filter_tags_custom_excluded}"
} }

View File

@ -6,7 +6,7 @@ resource "datadog_monitor" "php_fpm_connect" {
type = "service check" type = "service check"
query = <<EOF query = <<EOF
"php_fpm.can_ping".over${module.filter-tags.service_check}.by("ping_url").last(6).count_by_status() "php_fpm.can_ping"${module.filter-tags.service_check}.by("ping_url").last(6).count_by_status()
EOF EOF
thresholds = { thresholds = {

Some files were not shown because too many files have changed in this diff Show More