istio prometheus預警Prometheus AlertManager 安裝 --誤區

 誤區:由於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-datasourceblog

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

tailf /var/log/grafana/grafana.log

5.查看本地安裝的Plugin

grafana-cli plugins ls

service grafana-server restart

相關文章
相關標籤/搜索