locals { prometheus_helm_repo = "https://charts.bitnami.com/bitnami" prometheus_helm_chart = "kube-prometheus" prometheus_exporter_helm_repo = "https://prometheus-community.github.io/helm-charts" prometheus_exporter_helm_chart = "prometheus-postgres-exporter" prometheus_release_name = "prometheus" prometheus_exporter_release_name = "prometheus-postgres-exporter" prometheus_namespace = "prometheus" prometheus_remote_write_enabled = var.prometheus_remote_write_password != "" } # Create a namespace to hold our Prometheus deployment. resource "null_resource" "prometheus_namespace" { triggers = { namespace = local.prometheus_namespace kubeconfig_path = local.cluster_kubeconfig_path } depends_on = [ google_container_node_pool.misc ] provisioner "local-exec" { when = create command = <