forked from vistaprint/terraform-newrelic-monitoring
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
98 lines (82 loc) · 2.59 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
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_url" {
type = string
description = "The URL of the service to be used for synthetics monitoring."
}
variable "runbook_url" {
type = string
default = null
description = "URL where the runbook is located."
}
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 "error_rate_5xx_duration" {
type = number
default = 5
description = "How long the error threshold must be exceeded for before an alert is raised (in minutes)"
}
variable "error_rate_5xx_threshold" {
type = number
default = 10
description = "Error threshold (in percentage)"
}
variable "error_rate_4xx_duration" {
type = number
default = 5
description = "How long the error threshold must be exceeded for before an alert is raised (in minutes)"
}
variable "error_rate_4xx_threshold" {
type = number
default = 30
description = "Error threshold (in percentage)"
}
variable "high_latency_urgent_duration" {
type = number
default = 5
description = "How long the error threshold must be exceeded for before an alert is raised (in minutes)"
}
variable "high_latency_urgent_threshold" {
type = number
default = 1000
description = "Latency threshold (in milliseconds)"
}
variable "high_latency_non_urgent_duration" {
type = number
default = 5
description = "How long the error threshold must be exceeded for before an alert is raised (in minutes)"
}
variable "high_latency_non_urgent_threshold" {
type = number
default = 1000
description = "Latency threshold (in milliseconds)"
}