Skip to content

moneyadviceservice/terraform-module-application-insights

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-module-application-insights

A Terraform module for the creation of Application Insights instances.

Log analytics workspaces for prod and non-prod are created in the maps-core-infrastructure repo.

TODO: Add alerts.

Example

module "this" {
  source = "git@github.com:moneyadviceservice/terraform-module-application-insights?ref=main"

  product = var.product
  env     = var.env

  resource_group_name = data.azurerm_resource_group.this.name
}

Requirements

No requirements.

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_application_insights.this resource
azurerm_log_analytics_workspace.this data source
azurerm_resource_group.this data source

Inputs

Name Description Type Default Required
application_type Specifies the type of Application Insights to create. Valid values are java for Java web, Node.JS for Node.js, other for General, and web for ASP.NET string "web" no
daily_data_cap_in_gb The Application Insights component daily data volume cap in GB number 50 no
env Target environmnet to deploy to string n/a yes
location Region location string "UK South" no
name (Optional) Custom name string n/a yes
product Name of the service/product of the service string n/a yes
resource_group_name Name of the resource group to deploy app insights to string n/a yes
sampling_percentage Specifies the percentage of the data produced by the monitored application that is sampled for Application Insights telemetry. number 100 no
subscription_id The Subscription the Log Analytics workspace is in string "3a9bae85-2f6e-47a1-a371-7ee3c84cf70b" no

Outputs

Name Description
app_id n/a
connection_string n/a
id n/a
instrumentation_key n/a
name n/a
resource_group_name Resource group of log analytics Workspace
workspace_id log analytics Workspace id

About

A Terraform module for the creation of App Insights instances

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages