sensu / sensu-go

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

Selectors #4965

Closed c-kruse closed 1 year ago

c-kruse commented 1 year ago

What is this change?

Migrates a lot of the selector functionality from enterprise into sensu-go.

Why is this change necessary?

Developing the selectors feature across two codebases results in undue overhead.

The context utility in the selectors package is limited to a single global selector per context. This was passible when selector usage was sparse (in graphql and apid handlers and the event store), but now with interest in expanding selector functionality into more store implementations a single context key doesn't work.