From 5078741b699750e02ec89573664c2dd5bc6c68bd Mon Sep 17 00:00:00 2001 From: adamlahbib Date: Mon, 18 Nov 2024 23:18:56 +0100 Subject: [PATCH] Refactor monitoring.tf to update Grafana datasources and Prometheus target --- terraform/monitoring.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/monitoring.tf b/terraform/monitoring.tf index e9b8ea8..f7f3ee2 100644 --- a/terraform/monitoring.tf +++ b/terraform/monitoring.tf @@ -14,7 +14,7 @@ resource "kubernetes_config_map" "grafana_datasources" { } } data = { - datasources = yamlencode({ + "ds.yaml" = yamlencode({ apiVersion = 1 datasources = [ { @@ -124,7 +124,7 @@ resource "helm_release" "prometheus_operator" { scrape_interval = "60s" static_configs = [ { - targets = ["crowdsec-service.default.svc.cluster.local:6060"] + targets = ["crowdsec-service.crowdsec.svc.cluster.local:6060"] } ] }