bl双性强迫侵犯h_国产在线观看人成激情视频_蜜芽188_被诱拐的少孩全彩啪啪漫画

prometheus-operator的安裝和配置-創新互聯

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:

讓客戶滿意是我們工作的目標,不斷超越客戶的期望值來自于我們對這個行業的熱愛。我們立志把好的技術通過有效、簡單的方式提供給客戶,將通過不懈努力成為客戶在信息化領域值得信任、有價值的長期合作伙伴,公司提供的服務項目有:域名注冊、網頁空間、營銷軟件、網站建設、綏江網站維護、網站推廣。
  • "*.tmpl"
    route:
    group_by: ['job', 'severity']
    group_wait: 30s
    group_interval: 60m
    repeat_interval: 12h
    receiver: default
    routes:
  • receiver: wechat
    match:
    alertname: CPUThrottlingHigh
    receivers:
    • name: 'default'
      email_configs:
  • to: '313841662@qq.com'
    send_resolved: true
    • name: 'webhook'
      webhook_configs:
  • url: 'http://dingtalk-hook.kube-system.svc.cluster.local:5000'
    send_resolved: true
    • name: 'wechat'
      wechat_configs:
  • send_resolved: true
    agent_id: '1000002'
    to_user: '@all'
    corp_id: 'wwae01588e36d3f448'
    api_secret: '03vUA6wHSOtfCwfi8f7DkfXc0G4V6juaYOPDRjspnGU'

    PS:生成企業微信id和secret步驟詳見前面zabbix配置微信報警
    3、創建微信報警模板
    vim wechat.tmpl
    {{ define "wechat.default.message" }}
    {{ range .Alerts }}
    ========start=========
    告警程序: prometheus_alert
    告警級別: {{ .Labels.serverity }}
    告警類型: {{ .Labels.alertname }}
    故障主機: {{ .Labels.instance }}
    告警主題: {{ .Annotations.summary }}
    告警詳情: {{ .Annotations.description }}
    觸發時間: {{ (.StartsAt.Add 28800e9).Format "2006-01-02 15:04:05" }}
    =========end===========
    {{ end }}
    {{ end }}

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

另外有需要云服務器可以了解下創新互聯cdcxhl.cn,海內外云服務器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務器、裸金屬服務器、高防服務器、香港服務器、美國服務器、虛擬主機、免備案服務器”等云主機租用服務以及企業上云的綜合解決方案,具有“安全穩定、簡單易用、服務可用性高、性價比高”等特點與優勢,專為企業上云打造定制,能夠滿足用戶豐富、多元化的應用場景需求。

網站名稱:prometheus-operator的安裝和配置-創新互聯
文章URL:http://vcdvsql.cn/article10/csecdo.html

成都網站建設公司_創新互聯,為您提供動態網站面包屑導航小程序開發網站設計公司App設計微信公眾號

廣告

聲明:本網站發布的內容(圖片、視頻和文字)以用戶投稿、用戶轉載內容為主,如果涉及侵權請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網站立場,如需處理請聯系客服。電話:028-86922220;郵箱:631063699@qq.com。內容未經允許不得轉載,或轉載時需注明來源: 創新互聯

網站托管運營