sensu / sensu-go

Simple. Scalable. Multi-cloud monitoring.
https://sensu.io
MIT License
1.02k stars 175 forks source link

Check TTL #584

Closed portertech closed 6 years ago

portertech commented 6 years ago

Sensu 1.x provides Check TTL.

screen shot 2017-11-21 at 9 31 00 am

The time to live (TTL) in seconds until check Events are considered stale. If an Agent stops publishing Events for the check, and the TTL expires, an Event will be created for the Agent Entity. Check TTLs are optional.

1.x docs https://sensuapp.org/docs/1.1/reference/checks.html#check-attributes

1.x code https://github.com/sensu/sensu/blob/b32a0c1a88cf8f6f1b377ababcc8d5804a8698a6/lib/sensu/server/process.rb#L1154-L1235

1.x tests https://github.com/sensu/sensu/blob/b32a0c1a88cf8f6f1b377ababcc8d5804a8698a6/spec/server/process_spec.rb#L875-L922

grepory commented 6 years ago

This needs a test case / acceptance test of some kind.

mercul3s commented 6 years ago

A check with a TTL:

Checklist: