https://prefect.io logo
Title
j

jack

11/17/2022, 5:58 PM
With prefect 2, where does one go in the UI to see which agents are connected? (I started an agent and want to make sure it's pointed at the right place.)
k

Khuyen Tran

11/17/2022, 7:14 PM
I believe there’s currently no way for you to check this. @Emil Christensen I remember you asked something similar to this. Maybe you have a better answer for this?
j

jack

11/17/2022, 7:53 PM
When starting the prefect agent, it seems to give no feedback whether the correct URI is provided versus some non-existent URI.
j

Jeff Hale

11/17/2022, 10:21 PM
Hi Jack. If you check your Work Queues in the UI they will show Healthy if you have an agent polling it.
e

Emil Christensen

11/18/2022, 7:01 PM
@jack When you start up an agent you should see something like this in your agent log:
$ prefect agent start -q default
<https://api.prefect.cloud/api/accounts/><ACCOUNT_ID>/workspaces/<WORKSPACE_ID>.
..

  ___ ___ ___ ___ ___ ___ _____     _   ___ ___ _  _ _____
 | _ \ _ \ __| __| __/ __|_   _|   /_\ / __| __| \| |_   _|
 |  _/   / _|| _|| _| (__  | |    / _ \ (_ | _|| .` | | |
 |_| |_|_\___|_| |___\___| |_|   /_/ \_\___|___|_|\_| |_|


Agent started! Looking for work from queue(s): default...
That URL is the workspace it’s pointed to. Also, like @Jeff Hale said, you can check whether a work queue has an agent polling against it in the UI. We’ll be adding more functionality to track agents.
🙌 1