Skip to content

Commit

Permalink
Merge pull request #1452 from DFE-Digital/1889-scrape-custom-metrics
Browse files Browse the repository at this point in the history
Scrape custom metrics
  • Loading branch information
RMcVelia authored Jul 8, 2024
2 parents 56a8298 + 97697b2 commit 283b8fc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 2 additions & 0 deletions terraform/aks/application.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ module "api_application" {
web_external_hostnames = var.gov_uk_host_names
web_port = 8080
enable_logit = var.enable_logit

enable_prometheus_monitoring = var.enable_prometheus_monitoring
}

module "application_configuration" {
Expand Down
3 changes: 2 additions & 1 deletion terraform/aks/config/development_aks.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"cluster": "test",
"namespace": "git-development",
"enable_monitoring": false,
"enable_logit": true
"enable_logit": true,
"enable_prometheus_monitoring": true
}
3 changes: 2 additions & 1 deletion terraform/aks/config/production_aks.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"redis_sku_name": "Premium",
"postgres_flexible_server_sku": "GP_Standard_D2ds_v4",
"postgres_enable_high_availability": true,
"enable_logit": true
"enable_logit": true,
"enable_prometheus_monitoring": true
}
3 changes: 2 additions & 1 deletion terraform/aks/config/test_aks.tfvars.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"cluster": "test",
"namespace": "git-test",
"enable_monitoring": false,
"enable_logit": true
"enable_logit": true,
"enable_prometheus_monitoring": true
}
5 changes: 5 additions & 0 deletions terraform/aks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ variable "enable_logit" {
default = false
}

variable "enable_prometheus_monitoring" {
type = bool
default = false
}

locals {
azure_credentials = try(jsondecode(var.azure_credentials), null)
app_resource_group_name = "${var.azure_resource_prefix}-${var.service_short}-${var.config_short}-rg"
Expand Down

0 comments on commit 283b8fc

Please sign in to comment.