Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I get the total connection? #139

Open
jimmy-walker opened this issue Dec 26, 2023 · 1 comment
Open

How can I get the total connection? #139

jimmy-walker opened this issue Dec 26, 2023 · 1 comment
Labels
question Further information is requested

Comments

@jimmy-walker
Copy link

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.

@QingZ11 QingZ11 added the question Further information is requested label Jan 11, 2024
@kqzh
Copy link
Contributor

kqzh commented Jan 11, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants