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 to fetch list of all micro services #561

Closed
qqqays opened this issue Aug 2, 2018 · 1 comment
Closed

How to fetch list of all micro services #561

qqqays opened this issue Aug 2, 2018 · 1 comment

Comments

@qqqays
Copy link

@qqqays qqqays commented Aug 2, 2018

We call the micro service functions by using methods of rpc,
like this:

from nameko.standalone.rpc import ClusterRpcProxy
.....
with ClusterRpcProxy(CONFIG) as rpc:
result = rpc.service_name.function()

So, how to find all micro service that the ClusterRpcProxy can call.
whether I must use python connect RabbitMQ queue for gaining the all service name.

@qqqays

This comment has been minimized.

Copy link
Author

@qqqays qqqays commented Aug 3, 2018

I resolve it

import requests
.....
res = requests.get(url='http://localhost:15672/api/queues', auth=('guest', 'guest'))

for gaining the queues of rabbitmq information

@qqqays qqqays closed this Aug 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.