How to monitor logs and metrics for Serverless Jobs
You can monitor the activity of your Serverless Jobs using the Scaleway console to check the current status, RAM, and CPU consumption of your runs. Also, Serverless Jobs is fully integrated into Scaleway’s Observability Cockpit, and allows you to quickly access your logs.
Before you start
To complete the actions presented below, you must have:
- A Scaleway account logged into the console
- Owner status or IAM permissions allowing you to perform actions in the intended Organization
- Created a Serverless Job
How to monitor Jobs from the Scaleway console
-
Click Jobs in the Serverless section of the side menu. The jobs page displays.
-
Click the name of the job you want to monitor. The Overview tab displays:
-
The Job definition section contains the parameters of your Serverless job, and provides the following elements:
- Region
- Provisioned mvCPU and memory
- Provisioned ephemeral storage
- Container image used
- Cron schedule
-
The Job runs section lists all the executions of your Serverless job, and provides the following elements:
- Status (running, succeeded, canceled, or failed)
- Run ID
- Starting date
- End date
- Duration
-
-
From the job overview:
- Select the Logs tab, then click Open Grafana logs dashboard to access the logs of the job.
- Select the Metrics tab, then click Open Grafana metrics dashboard to access the metrics of the job.
How to access the Grafana dashboard
Scaleway Cockpit allows you to monitor your applications and their infrastructure by giving you access to metrics, logs, and traces in Grafana dashboards.
-
From the Scaleway console Cockpit overview page, click Access Grafana in the top right corner.
-
From the Scaleway Dashboards 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 dashboard. You can use the filters at the top of the page to refine the displayed information.
Available metrics
The following metrics are available to monitor your Serverless Jobs:
- Job runs running
- Execution time for job runs
- Job runs succeeded
- Job runs failed
- Job runs canceled
- Job runs internal error
- CPU usage - All
- Memory usage - All
- Network received bytes
- Network transmitted bytes