From e5c12f2eaf2f7065816097fb7f8d6264f954a528 Mon Sep 17 00:00:00 2001 From: RMcVelia Date: Wed, 10 Jul 2024 16:38:39 +0100 Subject: [PATCH] Set prometheus scrape port for workers --- aks/application/resources.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ? {