nebula-http-gateway icon indicating copy to clipboard operation
nebula-http-gateway copied to clipboard

How can I get the total connection?

Open jimmy-walker opened this issue 1 year ago • 1 comments

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.

jimmy-walker avatar Dec 26 '23 11:12 jimmy-walker

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.

kqzh avatar Jan 11 '24 09:01 kqzh