sensu-go
sensu-go copied to clipboard
Automatically delete entity subscription silences when deleting an entity?
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 @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?