Easily set up Prometheus (kube-prometheus-stack) on Kubernetes and configure Prometheus, Grafana, and Alertmanager.
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo updatekubectl create namespace monitoringkubectl apply -f grafana-secret.ymlecho -n 'the_data' | base64You can modify the config data inside the config folder.
helm uninstall prometheus -n monitoring./setup-prometheus.shhelm install prometheus prometheus-community/kube-prometheus-stack -n monitoring -f config/grafana.yml -f config/prometheus.yml -f config/alert-manager.ymlhelm upgrade prometheus prometheus-community/kube-prometheus-stack -n monitoring -f config/grafana.yml -f config/prometheus.yml -f config/alert-manager.ymlhelm uninstall prometheus -n monitoring./setup-prometheus.sh