MON-472 Name of the monitor on visible messages corriged.

This commit is contained in:
Rafael Romero Carmona 2019-09-05 16:37:07 +01:00
parent f29736982a
commit d1c8dcf19a
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ module "datadog-monitors-cloud-aws-sqs" {
Creates DataDog monitors with the following checks:
- SQS Age of the oldest message
- SQS Visible Messages (disabled by default)
- SQS Visible messages (disabled by default)
## Inputs

View File

@ -1,7 +1,7 @@
# Approximate Number of Visible Messages
resource "datadog_monitor" "visible_messages" {
count = var.visible_messages_enabled == "true" ? 1 : 0
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] SQS Visible Messages {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}"
name = "${var.prefix_slug == "" ? "" : "[${var.prefix_slug}]"}[${var.environment}] SQS Visible messages {{#is_alert}}{{{comparator}}} {{threshold}} ({{value}}){{/is_alert}}{{#is_warning}}{{{comparator}}} {{warn_threshold}} ({{value}}){{/is_warning}}"
type = "metric alert"
message = coalesce(var.visible_messages_message, var.message)