diff --git a/README.md b/README.md index 0917d07..860078b 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,9 @@ module "grpc_dashboard" { # Set true to enable alert. enable_alert = false + # Set to your application log management or confluence. + runbook_url = "http://www.scalyr.com" + # Replace with your dashboard name, should be unique for your account. dashboard_name = "app_grpc" service_name = "app_grpc" diff --git a/main.tf b/main.tf index 146ca07..ef1b1a3 100644 --- a/main.tf +++ b/main.tf @@ -838,6 +838,7 @@ resource "newrelic_nrql_alert_condition" "main" { type = "static" name = "[CRITICAL] Error Rate ${var.event_method_substring != "" ? replace(each.key, var.event_method_substring, var.event_method_replace) : each.key}" description = "Alert when error rate is above normal condition" + runbook_url = var.runbook_url enabled = var.enable_alert violation_time_limit_seconds = 3600 value_function = "single_value" diff --git a/variables.tf b/variables.tf index 0f795ff..ac5d129 100644 --- a/variables.tf +++ b/variables.tf @@ -36,4 +36,8 @@ variable "policy_id" { variable "enable_alert" { type = bool -} \ No newline at end of file +} + +variable "runbook_url" { + type = string +}