Problem: Your consumption is higher than you anticipated, and this is reflected in your invoice.
You can use Observability to help you understand which routes and functions are responsible for consumption. To do so:
- From your dashboard, select the project you want to investigate.
- Navigate from your dashboard to the Observability tab.
- Choose Serverless Functions (pre-selected by default) and select the appropriate timerange (e.g. last 6 hours).
- Sort the routes by Invocations, or Total Duration to see the most frequently invoked or longest-running routes:
- Select a route to see the Function view, which displays the number of invocations and the latency distribution.
- Advanced Metrics help you understand memory usage, cold starts and TTFB - which can have an effect on the overall consumption of your route.
- External APIs can show you request durations to upstream APIs, which directly influence the execution duration of your function: