# 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" } } ## 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 = <