nebula-http-gateway
nebula-http-gateway copied to clipboard
How can I get the total connection?
General Question Thanks for your work. I wanna ask how can I get the total connection of nebula-http-gateway.
I can use the command below to get the connection:
curl -i -X POST \
-d '{"username":"user","password":"password","address":"192.168.8.26","port":9669}' \
http://127.0.0.1:8080/api/db/connect
But if I rerun this command, it will give me another connection with new common-nsid. I wanna know how can I get the current total connection via curl or another source?
Thanks for your reply.
Hello, you can use the api/db/exec interface of nebula-http-gateway to execute the SHOW SESSIONS statement and retrieve the current number of connections to Nebula.