sematext / sematext-agent-java

Sematext Monitoring Agent
https://sematext.com/spm
Apache License 2.0
23 stars 9 forks source link

Send agent stop/start events #7

Open otisg opened 6 years ago

otisg commented 6 years ago

When the agent stops or starts it should generate an Event and send it to Event Receiver. Event Receiver URL is specified in the agent config. The stop event should probably be generated in the ShutdownHook.

bsmid commented 6 years ago

A note regarding event receiver URL - it doesn't have to be present and that is a valid case. Agent should in such cases just quietly skip sending any events.