Open bo0ts opened 2 years ago
It's true that there is no simple configuration that will let you do this. However, you could achieve this by sending events to the sensu-agent API from your check, if you wanted to work around this limitation with code.
It's not clear how a built-in approach to this would work, but I'll raise this as product input with our team. Thanks for filing!
Feature Suggestion
A check should be able to emit multiple events with different attributes for a single execution.
Context
We have a collection of checks that query an InfluxDB2. The results of the checks contain information for multiple entities and for efficiency reasons we do not want to run those queries per entity but would like the check to emit multiple events for the different entities. This is currently not achievable with Sensu (mutators can only emit a single event, proxy_requests lead to multiple check executions and entities are possibly very dynamic).