Matan Drory
10/09/2024, 10:20 PMMarvin
10/09/2024, 10:21 PM/metrics
endpoint, following Prometheus' data model. This would make it easier to monitor metrics, including API calls, using tools like Grafana. One related issue on GitHub suggests that such endpoints could provide insights into job metrics, although it's not confirmed for API call counts specifically. GitHub Issue
2. Audit Logs: In the Prefect Cloud, especially for Pro and Custom plans, audit logs are available, which provide records of activities, possibly including API calls. However, this would be more about user actions rather than direct API call counts.
3. Client Communication: Both Prefect 2.x and 3.x allow the Prefect client to communicate with the server via an API. This indicates that tracking the API versions in use is feasible, but doesn't inherently track the volume. Prefect 2.x Documentation mentions using the REST API for various client-server interactions.
Given your setup in Prefect 1.x, you might need to consider leveraging third-party application performance monitoring (APM) tools that can monitor network traffic to track API calls separately from Prefect. For future-proofing and migration considerations, looking into these potential integrations and documentations in Prefect 2.x and 3.x might be beneficial.
If you plan to migrate and expect a high volume of API calls, ensuring your infrastructure can handle at least 2000 API calls per minute alongside robust monitoring can be an important aspect of your migration strategy.