leancloud / satori

Satori 是一个 LeanCloud 维护的监控系统,inspired by Open-Falcon
Apache License 2.0
232 stars 76 forks source link

Alarm 需要可以自定义规则对发出的报警做变换 #24

Closed feisuzhu closed 5 years ago

feisuzhu commented 7 years ago

针对每个

可以做

users:
  proton:
    name: Proton
    email: bwang@leancloud.rocks
    filters:
      - filter: good_night  # 夜晚时间段 1 级以下的报警不要通知我
        mute_at: 0:00 - 8:00
        mute_below_level: 1  
      - filter: threshold  # 至少是 3 级报警才通知我
        level: 3

filters 需要放在规则仓库内,随时可以做自定义

jysperm commented 5 years ago

还有每个人要能够自定义不同的报警级别用什么渠道来发

feisuzhu commented 5 years ago

这个 filter 应该也放进 rules repo

feisuzhu commented 5 years ago

加入了 hook 机制,这个可以解决了