prometheus-operator的安装和配置

发布时间:2020-05-25 16:24:00 作者:鸽子
来源:亿速云 阅读:242

1、安装prometheus-operator,具体安装步骤链接:https://www.qikqiak.com/k8s-book/docs/58.Prometheus%20Operator.html
2、修改配置文件
/root/prometheus-operator/kube-prometheus/manifests
vim alertmanager.yaml
global:
resolve_timeout: 60m
smtp_smarthost: 'smtp.139.com:25'
smtp_from: '15859527102@139.com'
smtp_auth_username: '15859527102@139.com'
smtp_auth_password: 'x84l_asus_ak'
smtp_hello: '139.com'
smtp_require_tls: false
wechat_api_url: 'https://qyapi.weixin.qq.com/cgi-bin/'
wechat_api_secret: '03vUA6wHSOtfCwfi8f7DkfXc0G4V6juaYOPDRjspnGU'
wechat_api_corp_id: 'wwae01588e36d3f448'
templates:

4、# 先将之前的 secret 对象删除,重新创建
$ kubectl delete secret alertmanager-main -n monitoring
secret "alertmanager-main" deleted
kubectl create secret generic alertmanager-main --from-file=alertmanager.yaml --from-file=wechat.tmpl -n monitoring

推荐阅读:
  1. Conda的安装和配置
  2. mongodb的安装和配置

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

prometheus operator eu

上一篇:MySQL中常见锁

下一篇:云主机与独立服务器的区别在哪里?

相关阅读

您好,登录后才能下订单哦!

密码登录
登录注册
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》