# resource "null_resource" "prometheus_pv" { # provisioner "local-exec" { # when = create # command = "kubectl apply -f static/prometheus-pv.yaml" # } # provisioner "local-exec" { # when = destroy # command = "kubectl delete -f static/prometheus-pv.yaml" # } # } resource "helm_release" "prometheus" { # depends_on = [ null_resource.prometheus_pv ] name = "prometheus" namespace = "default" chart = "kube-prometheus-stack" repository = "https://prometheus-community.github.io/helm-charts" wait = false set { name = "grafana.adminPassword" value = "admin" } set { name = "grafana.plugins" value = "devopsprodigy-kubegraf-app" } # set { # name = "prometheus-node-exporter.image.tag" # value = "v1.1.2" # } # set { # name = "prometheus.prometheusSpec.image.tag" # value = "v2.25.1" # } # set { # name = "prometheus.alertManagerSpec.image.tag" # value = "v2.25.1" # } } ## SEE following for the dashboard configuration ### https://grafana.com/grafana/plugins/devopsprodigy-kubegraf-app/ resource "null_resource" "kubegraf_dashboard" { depends_on = [helm_release.prometheus] provisioner "local-exec" { when = create command = <