Use your Cockpit logs and metrics to fine-tune the resources allocated to your Serverless Functions to avoid bottlenecks and over-provisioning.
How to monitor your Serverless Functions
Scaleway Serverless Functions is fully integrated into
Cockpit, and allows you to quickly access your logs and metrics. This page explains how to get started with Scaleway Cockpit to monitor your Serverless Functions.Before you startLink to this anchor
To complete the actions presented below, you must have:
- A Scaleway account logged into theconsole
- Owner status orIAM permissions allowing you to perform actions in the intended Organization
- Created a Serverless Function
How to activate your CockpitLink to this anchor
Scaleway Cockpit is activated by default if you have created
Scaleway resources integrated with Cockpit.How to access the Grafana dasardLink to this anchor
To view your Serverless Functions logs, use the Grafana dasard which is accessible from the Scaleway console:
- First you must create a user and their associated credentials (a username and password) for Grafana.
- Then use these credentials to access the Grafana dasard for all your Scaleway products, via the Scaleway console.
Create a Grafana user and retrieve their username and password by following
this procedure.From the Scaleway console
Cockpit overview page, click Open dasards in the top right corner.Enter your Grafana username and password to log in.
You are directed to the Scaleway Cockpit dasards homepage.
From the Scaleway Dasards panel, select:
- Serverless Functions logs to access the logs of your functions.
- Serverless Functions Overview to access the metrics of your functions.
You are directed to the selected dasard. You can use the filters at the top of the page to refine the displayed information.
You can also access your Serverless Functions logs and metrics from the
consolevia the Logging and Metrics tabs of a function.Available metricsLink to this anchor
The following metrics are available to monitor your Serverless Functions:
- Function status
- Number of instances
- Average memory usage across instances
- Average CPU percentage usage across instances
- Number of requests per second
- Memory usage per instance
- CPU usage per instance
- Responses status code percentage
- Network received bytes per instance
- Network transmitted bytes per instance