How to use /varz on agent

Hi,

I’m trying to get runtime information with /varz on an agent and was wondering how can I do this?

Some info on what I’ve tried so far:
To get /healthz I did:
docker exec < agent-container-id > drone-agent ping
And to get /version I did:
docker exec < agent-container-id > drone-agent -v

Thanks

Sorry for the daft question, I’ve worked it out.

If it helps anyone, I got the agent container ip with docker inspect then used:
curl http://<<container-id>>:3000/varz
This works for the other endpoints /healthz and /version.

Thanks