Hi guys, is there any guide of monitoring Prefect ...
# ask-community
k
Hi guys, is there any guide of monitoring Prefect Agent using tools like New Relic or Datadog?
i
Hey @Kien Nguyen, I don't know if you have already seen this, but the Prefect has a dashboard to monitoring server agents (the same happens to the Prefect Cloud): https://docs.prefect.io/orchestration/ui/dashboard.html If you want to use some external tool like Grafana or Datadog, I think that you need to ship your logs, just like the example below: https://www.mazsoft.com/blog/post/2021/01/29/ship-prefect-logs-using-filebeat
k
Is there a way I can monitor how much resources (CPU, RAM) the agent is using?
i
@Kevin Kho, please correct me if I say something wrong, but I think there's no option yet to monitoring host resources. But if you are using the Flow on a containerized application, you can ship the Docker stats logs as explained above. If you are using just a python application, you can use the psutil library to collect and ship the information.
k
Oops I had a response typed out but didn’t hit enter 😅. Yes Italo is right here and I haven’t seen and guides on how to do this and Prefect doesn’t have any native options. Italo brings up good suggestions, but I haven’t seen guides on on New Relic or Datadog
😄 2