2

We are using sensu go with email handler. In sensu go, is there any way to use occurrence,refresh like sensu core?

1 Answers1

1

Sensu contributor here

occurrence and refresh attributes are no longer present/valid in Sensu Go. 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
AaronSachs
  • 56
  • 4
  • Not to say that your answer wouldn't be useful, but you do seem to be one of the contributors of that project and you must always disclose your affiliation, as per SO's promotion rules https://stackoverflow.com/help/promotion – Andrei Mustata Jul 15 '20 at 14:03