安装prometheus监控
wget https://get.helm.sh/helm-v3.6.0-linux-amd64.tar.gz
ll
tar -zxvf helm-v3.6.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/
helm version
helm repo add stable https://charts.helm.sh/stable
helm list
helm install prometheus stable/prometheus-operator
kubectl get all
helm list
kubectl edit svc prometheus-grafana
只需要 kubectl edit svc prometheus-grafana将clusterIP改为NodePort即可
默认的用户名/密码为:admin/prom-operator,登陆后,点击Manage …
说明
https://helm.sh/docs/intro/using_helm/ —> the Artifact Hub, —> https://artifacthub.io/packages/helm/mesosphere/prometheus-operator --》得到helm repo add stable https://charts.helm.sh/stable && helm repo update
参考链接 https://www.pianshen.com/article/34741862766/