https://prefect.io logo
Title
c

Craig

10/13/2020, 4:21 AM
Hi, I have prefect server installed and an agent running locally on the same tin. Can I have an agent running on a different server configured to communicate with the perfect server? If so, what is the required configuration? Also how to I see which agents are connecting into the server?
n

nicholas

10/13/2020, 4:30 AM
Hi @Craig - yes you can, by setting the
endpoint
variable in the environment or
~/.prefect/config.toml
of the machine you'll run your agent on. You'll need to point it at an accessible IP address for your instance of server, at the
<http://your_ip:4200/graphql>
.
# ~/.prefect/config.toml
[server]
endpoint="your_ip:4200/graphql"
If you're on the most recent version of server, you'll be able to see connected agents from the agents tile of the UI dashboard, and you can see even more information about your agents from the agents tab:
sorry @Craig - I modified my answer there, the config was correct for Cloud and not Server before, sorry about that
c

Craig

10/13/2020, 4:50 AM
@nicholas Thanks for the fast reply
👍 1
a

Alberto de Santos

10/14/2020, 12:21 PM
Amazing