使用helm在EKS上部署Prometheus
下载包
git clone git@github.com:prometheus-community/helm-charts.git
增加代码库的注册
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
定义提交确认
helm repo list
发挥+力量
prometheus-community https://prometheus-community.github.io/helm-charts
切换目录
cd helm-charts/charts/prometheus
部署
- value.yamlでNodeExportの設定がtrueになっているので、デフォルトでNodeExporterも構成される
helm install prometheus prometheus-community/prometheus
连接
export POD_NAME=$(kubectl get pods --namespace default -l "app=prometheus,component=server" -o jsonpath="{.items[0].metadata.name}")
kubectl --namespace default port-forward $POD_NAME 9090
进行确认
