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

相关文章
相关标签/搜索