MON-79 change default tag variable for more explicit name

This commit is contained in:
Quentin Manfroi 2017-11-23 12:21:58 +01:00
parent bc1a493204
commit e02cf797ab
3 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ Inputs
| delay | Delay in seconds for the metric evaluation | string | `600` | no |
| environment | Architecture environment | string | - | yes |
| message | Message sent when a monitor is triggered | string | - | yes |
| filter_tags_default | Use default tagging convention | string | `true` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_default is false | string | `*` | no |
| filter_tags_use_defaults | Use default tagging convention | string | `true` | no |
| filter_tags_custom | Tags used for custom filtering when filter_tags_use_defaults is false | string | `*` | no |
| availability_threshold_critical | Minimum threshold of availability | string | `90` | no |
| successful_requests_threshold_critical | Minimum threshold of successful requests | string | `90` | no |
| latency_threshold_critical | Maximum threshold of latency in ms | string | `1000` | no |

View File

@ -14,13 +14,13 @@ variable "delay" {
default = 600
}
variable "filter_tags_default" {
variable "filter_tags_use_defaults" {
description = "Use default filter tags convention"
default = "true"
}
variable "filter_tags_custom" {
description = "Tags used for custom filtering when filter_tags_default is false"
description = "Tags used for custom filtering when filter_tags_use_defaults is false"
default = "*"
}

View File

@ -2,7 +2,7 @@ data "template_file" "filter" {
template = "$${filter}"
vars {
filter = "${var.filter_tags_default == "true" ? format("dd_monitoring:enabled,dd_azure_storage:enabled,env:%s", var.environment) : "${var.filter_tags_custom}"}"
filter = "${var.filter_tags_use_defaults == "true" ? format("dd_monitoring:enabled,dd_azure_storage:enabled,env:%s", var.environment) : "${var.filter_tags_custom}"}"
}
}