sensu / sensu-go

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

Deleting an Entity should delete its associated events #4943

Open lspxxv opened 1 year ago

lspxxv commented 1 year ago

Deleting an Entity should include its associated events so stale events aren't still hanging around when the parent entity has been removed from monitoring.

Feature Suggestion

Customer comment - It helps keep the event database clean and we don't have to write external scripting to parse the event list and figure out what is stale...

Possible Implementation

Context

internal ref - https://secure.helpscout.net/conversation/2129763947/30718?folderId=4465878

asachs01 commented 1 year ago

Resolve vs. delete events? We have customers who have use cases (like decommissioning nodes/hardware) where they would want a decommed entity to no longer have associated events. @portertech is thinking it would be a separate API.

Two cleanups here: