sematext / sematext-agent-java

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

Add health check endpoint #17

Open sivasamyk opened 5 years ago

sivasamyk commented 5 years ago

Add /health HTTP endpoint to the agent to be used when the agent is running in container/k8s environment. Initial implementation can start with simple boolean return value like 200 OK and 500 Error. The health can return an error when there are issues with config files (invalid YAMLs, cannot find file etc) or config params (invalid token). If an agent has issues with connection to application etc, it should still report 200 OK.