誤區:由於prometheus是一個pod不能重啓,因此此方案適用於單獨非容器安裝的prometheus。bash
1.進入podrest
kubectl exec -n istio-system -it grafana-694477c588-8rbvc /bin/bashcode
2.下載安裝Prometheus AlertManagerserver
grafana-cli plugins install camptocamp-prometheus-alertmanager-datasource
blog
3.restart grafana serviceit
service grafana-server restartio
4.查看錯誤緣由容器
grafana-server -homepath /usr/share/grafanacli
Right. Something is already using port 3000.plugin
Stop the grafana services
systemctl stop grafana.service -l
do a ps aux |grep grafana and kill if any process exits
Then start grafana using
systemctl stop grafana.service -l
Tailf for grafana logs
5.查看本地安裝的Plugin
grafana-cli plugins ls
service grafana-server restart