forked from vistaprint/terraform-newrelic-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
185 lines (154 loc) · 4.96 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
variable "newrelic_account_id" {
type = number
description = "New Relic Account Id"
}
variable "newrelic_app_name" {
type = string
description = <<-EOF
The name of the application to monitor.
This field is used to name the resources that will be created by Terraform,
not to filter metrics in New Relic. Use newrelic_fully_qualified_app_name
for that.
EOF
}
variable "newrelic_fully_qualified_app_name" {
type = string
description = "The name that the application was registered in New Relic with."
}
variable "service_healthcheck_url" {
type = string
default = null
description = <<-EOF
The URL of the service to be used for synthetics monitoring.
If undefined, no synthetics monitoring for the health check will be created.
EOF
}
variable "runbook_url" {
type = string
default = null
description = "URL where the runbook is located."
}
variable "enable_dashboard" {
type = bool
default = false
description = "True if creating a custom dashboard is desired; false otherwise."
}
variable "dashboard_permissions" {
type = string
default = "public_read_only"
description = <<-EOF
Determines who can see the dashboard in an account.
See https://registry.terraform.io/providers/newrelic/newrelic/latest/docs/resources/one_dashboard#permissions
EOF
}
variable "enable_victorops_notifications" {
type = bool
default = false
description = "True if VictorOps notifications are desired; false otherwise."
}
variable "victorops_api_key" {
type = string
default = null
description = "API key for VictorOps"
}
variable "victorops_urgent_routing_key" {
type = string
default = null
description = "Routing key where urgent notifications will be sent."
}
variable "victorops_non_urgent_routing_key" {
type = string
default = null
description = "Routing key where non-urgent notifications will be sent."
}
variable "enable_pagerduty_notifications" {
type = bool
default = false
description = "True if PagerDuty notifications are desired; false otherwise."
}
variable "pagerduty_service_key" {
type = string
default = null
description = "Integration key for the PagerDuty Service"
}
variable "alert_error_rate_enable" {
type = bool
default = false
description = "Enable or disable error rate alert"
}
variable "alert_error_rate_duration" {
type = number
default = 300
description = "How long the error threshold must be exceeded for before an alert is raised (in seconds)"
}
variable "alert_error_rate_threshold" {
type = number
default = 10
description = "Error threshold (in percentage)"
}
variable "alert_error_rate_5xx_enable" {
type = bool
default = true
description = "Enable or disable 5xx error rate alert"
}
variable "alert_error_rate_5xx_duration" {
type = number
default = 300
description = "How long the error threshold must be exceeded for before an alert is raised (in seconds)"
}
variable "alert_error_rate_5xx_threshold" {
type = number
default = 10
description = "Error threshold (in percentage)"
}
variable "alert_error_rate_4xx_enable" {
type = bool
default = true
description = "Enable or disable 4xx error rate alert"
}
variable "alert_error_rate_4xx_duration" {
type = number
default = 300
description = "How long the error threshold must be exceeded for before an alert is raised (in seconds)"
}
variable "alert_error_rate_4xx_threshold" {
type = number
default = 30
description = "Error threshold (in percentage)"
}
variable "alert_error_rate_4xx_conditions" {
type = string
default = ""
description = "WHERE conditions for alert on 4xx errors (must start with AND)"
}
variable "alert_high_latency_urgent_duration" {
type = number
default = 300
description = "How long the error threshold must be exceeded for before an alert is raised (in seconds)"
}
variable "alert_high_latency_urgent_threshold" {
type = number
default = 1000
description = "Latency threshold (in milliseconds)"
}
variable "alert_high_latency_non_urgent_duration" {
type = number
default = 300
description = "How long the error threshold must be exceeded for before an alert is raised (in seconds)"
}
variable "alert_high_latency_non_urgent_threshold" {
type = number
default = 1000
description = "Latency threshold (in milliseconds)"
}
variable "response_status_variable_name" {
type = string
default = "response.status"
description = <<-EOF
Name of the variable containing the response status in a transaction.
Different New Relic agents seem to use different names for the variable
containing the response status. `response.status` and `httpResponseCode`
seem to be the names used by most agents. Set this variable to override
the default value.
EOF
}