Files
Kai-Hsun ChenandGitHub 47148921c7 [Feature] Improve and fix Prometheus & Grafana integrations (#895)
The old document (observability.md) of Prometheus and Grafana has some issues that make users hard to follow. This PR fixes these issues.
2023-02-15 13:51:20 -08:00

21 lines
498 B
Bash
Executable File

#!/bin/bash
set -x
set errexit
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
helm repo update
helm --namespace prometheus-system install prometheus prometheus-community/kube-prometheus-stack --create-namespace
# set the place of monitor files
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" > /dev/null && pwd)"
monitor_dir=${DIR}/../../config/prometheus
# start to install monitor
pushd ${monitor_dir}
for file in `ls`
do
kubectl apply -f ${file}
done
popd