diff --git a/spartan/metrics/values.tmp.yaml b/spartan/metrics/values.tmp.yaml index 8983665b6124..c03a1e275b46 100644 --- a/spartan/metrics/values.tmp.yaml +++ b/spartan/metrics/values.tmp.yaml @@ -124,7 +124,6 @@ grafana: jsonData: timeout: 60 timeInterval: 15s - scrapeInterval: 15s dashboardProviders: dashboardproviders.yaml: apiVersion: 1 diff --git a/spartan/terraform/deploy-metrics/main.tf b/spartan/terraform/deploy-metrics/main.tf index d2fce93be2a4..da948f229055 100644 --- a/spartan/terraform/deploy-metrics/main.tf +++ b/spartan/terraform/deploy-metrics/main.tf @@ -90,21 +90,31 @@ resource "helm_release" "aztec-gke-cluster" { set { name = "prometheus.serverFiles.prometheus\\.yml.scrape_configs[0].job_name" - value = "otel-collector" + value = "prometheus" } set { name = "prometheus.serverFiles.prometheus\\.yml.scrape_configs[0].static_configs[0].targets[0]" - value = "${google_compute_address.otel_collector_ip.address}:8888" + value = "127.0.0.1:9090" } set { name = "prometheus.serverFiles.prometheus\\.yml.scrape_configs[1].job_name" - value = "aztec" + value = "otel-collector" } set { name = "prometheus.serverFiles.prometheus\\.yml.scrape_configs[1].static_configs[0].targets[0]" + value = "${google_compute_address.otel_collector_ip.address}:8888" + } + + set { + name = "prometheus.serverFiles.prometheus\\.yml.scrape_configs[2].job_name" + value = "aztec" + } + + set { + name = "prometheus.serverFiles.prometheus\\.yml.scrape_configs[2].static_configs[0].targets[0]" value = "${google_compute_address.otel_collector_ip.address}:8889" }