Skip to content

Commit f1f7f57

Browse files
Fix up runbook URL, use var for New Relic entities
1 parent c97ddf1 commit f1f7f57

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

terraform/newrelic.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ resource "newrelic_alert_condition" "spin-appdex" {
1818

1919
name = "spin-appdex"
2020
type = "apm_app_metric"
21-
entities = ["179953338"] # You can look this up in New Relic
21+
entities = "${var.newrelic_apm_entities}"
2222
metric = "apdex"
23-
runbook_url = "https://github.com/devops-infra-demo/wiki/runbook"
23+
runbook_url = "${var.newrelic_runbook_url}"
2424

2525
term {
2626
duration = 5

terraform/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ variable "newrelic_apm_entities" {
9696
default = []
9797
}
9898

99+
variable "newrelic_runbook_url" {
100+
description = "New Relic runbook URL"
101+
default = "https://github.com/ModusCreateOrg/devops-infra-demo/wiki/runbook"
102+
}
103+
99104
variable "newrelic_alert_email" {
100105
description = "New Relic alert email"
101106
default = ""

0 commit comments

Comments
 (0)