diff --git a/aks/application/resources.tf b/aks/application/resources.tf index e852038..89d2d89 100644 --- a/aks/application/resources.tf +++ b/aks/application/resources.tf @@ -9,7 +9,7 @@ locals { prometheus_scrape_annotations = var.enable_prometheus_monitoring ? { "prometheus.io/scrape" = "true" "prometheus.io/path" = "/metrics" - "prometheus.io/port" = var.web_port + "prometheus.io/port" = var.is_web ? var.web_port : 9394 } : {} logit_annotations = var.enable_logit ? {