Skip to content

xorxsan/terraform-newrelic-monitoring

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-newrelic-monitoring

This Terraform module creates New Relic alerts and a dashboard to monitor an application. It also allows for sending notifications to VictorOps.

Example Usage

provider "newrelic" {
  api_key = "Your New Relic API key"
}

module "newrelic_monitoring" {
  source  = "vistaprint/monitoring/newrelic"
  version = "0.0.2"

  newrelic_app_name                 = "Your app name"
  newrelic_fully_qualified_app_name = "Team/PRD/App"
  service_url                       = "https://your-service-url.com"

  enable_victorops_notifications   = true
  victorops_api_key                = "Your VictorOps API key"
  victorops_urgent_routing_key     = "your-team-urgent"
  victorops_non_urgent_routing_key = "your-team-non-urgent"
}

See variables.tf for more information on the input variables that the module accepts. For instance, the default values for an alert's duration and threshold can be overridden. The following example shows how to do so:

module "newrelic_monitoring" {
  source  = "vistaprint/monitoring/newrelic"
  version = "0.0.2"

  # some fields ommitted (see previous example)

  error_rate_5xx_duration  = 10 # minutes
  error_rate_5xx_threshold = 5  # percentage
}

About

Terraform module to monitor an application using New Relic

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%