Skip to content

Commit

Permalink
Merge pull request #15 from rizalgowandy/arwego/feat/add_runbook_url
Browse files Browse the repository at this point in the history
Add Alert Runbook URL
  • Loading branch information
Rizal Widyarta Gowandy authored Aug 31, 2021
2 parents 47977f1 + a7e374a commit 78c60f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 5 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ variable "policy_id" {

variable "enable_alert" {
type = bool
}
}

variable "runbook_url" {
type = string
}

0 comments on commit 78c60f4

Please sign in to comment.