Hello guys ! We have a cloud prefect suscription ...
# prefect-cloud
h
Hello guys ! We have a cloud prefect suscription and we want to put some monitoring using its API, I saw that we can check worker processes within a workspace using this endpoint : https://api.prefect.cloud/api/accounts/{account_id}/workspaces/{workspace_id}/work_pools/{work_pool_name}/workers/filter The response for my case is quite non understandable. I dont understand why the last_heartbeat_time and the status did not change since with the multiple runs that happened. For the filter I used a large temporal filter that includes today's date, Any clue ? Maybe I am using the wrong endpoint also .. { "id": "xxx-xxx", "created": "2024-03-11T140346.498814+00:00", "updated": "2024-03-11T140346.498824+00:00", "name": "string", "work_pool_id": "xxx-xxx", "last_heartbeat_time": "2024-03-11T140504.749455+00:00", "status": "OFFLINE", "heartbeat_interval_seconds": 0 } Thank you 🙂
c
Hi Hamza! A couple questions: 1. What kind of worker(s) are you running? Do they have a stable ID? Or are these ephemeral `ProcessWorker`s? 2. What do you see when you navigate to the worker's list on the Cloud UI? (
Work Pools
on the sidebar -> choose the pool ->
Workers
tab) Here's an example of one of my test workspaces:
What I'm wondering is if you have lots of workers listed and only the most recent one is
ONLINE
?
h
1-We have prefect agents and we don't see how to get its IDs. 2-When we open the work pools we do not see the Workers tab.