Let the agent serve a status page via HTTP. #1066
This feature can optionally be enabled via the
When enabled, the agent starts an HTTP server on the given
It exports two endpoints:
I'll still do some polish and testing of this, but am sending it already for review to get your feedback on this idea. :)
This looks awesome! Very keen on the idea.
My biggest hesitation is the use of the default http server. It took me a while to click that a handler was being added in the agent package. I know this is how some of the standard library stuff works, but it's always seemed like a bad use of global scope to me.
What are your thoughts on that @philwo? I'd be happy to accept this implementation and we can refactor the next time we need to touch it, but figured it was worth discussing.