sensu / sensu-go

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

Proxy events should have an attribute indicating the actual entity which executed the check #3761

Open ichilton opened 4 years ago

ichilton commented 4 years ago

Feature Suggestion

When setting proxy_entity_name, the entity name on any resulting events is the value of proxy_entity_name - as you'd expect.

Unless i'm mistaken, it doesn't seem possible to find out the actual agent which executed the check. This could be very useful information for diagnosing the problem if there are a number of agents which are subscribed - particularly if using round robin checks.

Possible Implementation

Add an additional attribute to events which include the agent which executed the check which triggered the event.

Context

I'm using round robin checks with a pool of proxies and I want to be able to identify which proxy caused the alert as this is useful for diagnosing the problem.

sensu-discourse commented 4 years ago

This issue has been mentioned on Sensu Community. There might be relevant details there:

https://discourse.sensu.io/t/round-robin-check-reporting-agent/1918/3