-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
71 lines (59 loc) · 2 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
variable "env" {
type = string
}
variable "filter_str" {
type = string
}
variable "service" {
description = "Service name of what you're monitoring. This also sets the service:<service> tag on the monitor"
type = string
}
variable "service_display_name" {
type = string
default = null
}
variable "notification_channel" {
description = "Channel to which datadog sends alerts, will be overridden by alerting_enabled if that's set to false"
type = string
}
variable "additional_tags" {
description = "Additional tags to set on the monitor. Good tagging can be hard but very useful to make cross sections of the environment. Datadog has a few default tags. https://docs.datadoghq.com/getting_started/tagging/ is a good place to start reading about tags"
type = list(string)
default = []
}
variable "name_prefix" {
description = "Can be used to prefix to the Monitor name"
type = string
default = ""
}
variable "name_suffix" {
description = "Can be used to suffix to the Monitor name"
type = string
default = ""
}
variable "locked" {
type = bool
default = true
}
# The default values for the following two variables can be found in the
# locals.tf file. As a local, the fallback contain references to other
# variables.
variable "service_check_include_tags" {
description = "List of tags for the \"over\" part of the query. Can be either key:value tags or boolean tags."
type = list(string)
default = null
}
variable "service_check_exclude_tags" {
description = "List of tags for the \"exclude\" part of the query. Can be either key:value tags or boolean tags."
type = list(string)
default = null
}
variable "priority_offset" {
description = "For non production workloads we can +1 on the priorities"
default = 0
}
variable "alert_by" {
description = "This determines if you want an alert for each value of a tag, ex: by {host} -> generates an alert per host"
type = string
default = "host"
}