Hi, I have prefect server installed and an agent r...
# prefect-server
c
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
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>
.
Copy code
# ~/.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
@nicholas Thanks for the fast reply
👍 1
a
Amazing