sensu-go icon indicating copy to clipboard operation
sensu-go copied to clipboard

Automatically delete entity subscription silences when deleting an entity?

Open calebhailey opened this issue 3 years ago • 1 comments

Feature Suggestion

If a silence is created for a given entity, and that entity is subsequently deleted, the silence is not automatically cleaned up. It would be nice if we automatically delete entity-based silences (i.e. any silence that has a subscription like <entity:x>:*).

Possible Implementation

Perhaps this could be implemented via a new silencing configuration field (e.g. something like expire_with_entity: <entity name>)? Then entity-based silence deletion could be implemented via a query for this field?

Context

Requested by customer support ticket(s):

  • https://secure.helpscout.net/conversation/1420299942/24464?folderId=1931916

calebhailey avatar Mar 15 '21 16:03 calebhailey

@calebhailey @portertech it looks like this was originally set for the 6.6.0 release, but didn't make it. Can we add this to an upcoming release?

asachs01 avatar Jul 08 '22 13:07 asachs01