zoukankan      html  css  js  c++  java
  • Granfana设置邮件告警

      环境查看

       查看granfana版本

       也可以使用以下方法查看版本

    grafana-server -v
    

       设置邮件发送者信息

      报警granfana配置文件添加邮件配置信息

    /etc/grafana/grafana.ini 
    
    [smtp]
    #开启smtp
    enabled = true
    #邮箱发送地址及端口
    host = smtp.exmail.qq.com:25
    #邮箱用户名
    user = xxx@xxx.xx 
    # If the password contains # or ; you have to wrap it with triple quotes. Ex """#password;"""
    #邮箱密码
    password = xxxx
    ;cert_file =
    ;key_file =
    ;skip_verify = false
    from_address = xx@xxx.xx
    from_name = xx
    # EHLO identity in SMTP dialog (defaults to instance_name)
    ;ehlo_identity = dashboard.example.com
    # SMTP startTLS policy (defaults to 'OpportunisticStartTLS')
    ;startTLS_policy = NoStartTLS
    

       重启granfana服务器

    systemctl restart grafana-server
    

       granfana添加告警

     

       设置好的邮箱会收到测试邮件

       针对具体监控项配置告警

       当触发告警则发送邮件

  • 相关阅读:
    linux升级node版本
    mysql视图
    mysql全文本搜索
    mysql数据处理函数
    mysql数据分组
    mysql组合查询
    Django添加生产环境配置
    费用保险单,如何失焦时自动补零
    div+css滚动条
    phpadmin导入数据提示文件最大限制的修改方法
  • 原文地址:https://www.cnblogs.com/minseo/p/13402264.html
Copyright © 2011-2022 走看看