avx-pmarie-aws-infra/modules/eks-kube-prometheus-stack/main.tf

42 lines
1012 B
Terraform
Raw Permalink Normal View History

2022-07-12 22:32:18 +02:00
resource "helm_release" "kube_prometheus_stack" {
name = var.prom_operator_release_name
repository = "https://prometheus-community.github.io/helm-charts"
chart = "kube-prometheus-stack"
version = "34.9.0"
namespace = var.namespace
create_namespace = var.create_namespace
set {
name = "prometheus.ingress.enabled"
value = true
}
set {
name = "prometheus.ingress.hosts"
value = "{prometheus-operator.${var.domain}}"
}
set {
name = "alertmanager.enabled"
value = var.enable_alertmanager
}
set {
name = "alertmanager.ingress.enabled"
value = var.enable_alertmanager
}
set {
name = "alertmanager.ingress.hosts"
value = "{alertmanager.${var.domain}}"
}
set {
name = "grafana.enabled"
value = var.enable_grafana
}
set {
name = "grafana.ingress.enabled"
value = var.enable_grafana
}
set {
name = "grafana.ingress.hosts"
value = "{grafana.${var.domain}}"
}
}