简体   繁体   English

sensu go中是否有sensu core之类的刷新和出现字段?

[英]Is there any refresh and occurrence fields like sensu core in sensu go?

We are using sensu go with email handler.我们正在使用 sensu go 和 email 处理程序。 In sensu go, is there any way to use occurrence,refresh like sensu core?在 sensu go 中,有没有办法使用发生,像 sensu 内核一样刷新?

Sensu contributor here Sensu 贡献者在这里

occurrence and refresh attributes are no longer present/valid in Sensu Go. Sensu Go 中的occurrencerefresh属性不再存在/有效。 If you're wanting similar behavior, I suggest looking at the fatigue check filter .如果您想要类似的行为,我建议您查看疲劳检查过滤器 You'd end up having a check that looks like:你最终会得到一张看起来像这样的支票:

---
type: CheckConfig
api_version: core/v2
metadata:
  name: linux-cpu-check
  namespace: default
  annotations:
    fatigue_check/occurrences: '3'
    fatigue_check/interval: '900'
    fatigue_check/allow_resolution: 'false'
spec:
  command: check-cpu -w 90 c 95
  handlers:
  - email
  interval: 60
  publish: true
  runtime_assets: 
  subscriptions:
  - linux

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM