How to monitor your Load Balancer with Scaleway Cockpit
Reviewed on 23 August 2024 • Published on 07 August 2023
You can view your Load Balancer’s metrics and logs by using Scaleway Cockpit. Load Balancer is fully integrated into Cockpit, and allows you to monitor your Load Balancers frontends, backends, and backend servers at a glance, and visualize your metrics, traffic and logs. This page explains how to get started with Scaleway Cockpit for viewing your Load Balancers metrics and logs.
Cockpit dashboard updates
Starting April 2024, a new version of Cockpit will be released.
In this version, the concept of regionalization will be introduced to offer you more flexibility and resilience for seamless monitoring. If you have created customized dashboards with data for your Scaleway resources before April 2024, you will need to update your queries in Grafana, with the new regionalized data sources.
At the top of the dashboard, you can configure the following parameters, which control which metrics are displayed:
A: Time period: Click this drop-down to configure the time period you want the metrics displayed to cover. You can set an absolute time range, from one fixed date-time to another, or use a quick range such as Last 15 minutes or Last 3 hours.
B: Refresh rate: Use the arrow icon to refresh the dashboard, and/or use the drop-down next to it to set the automatic refresh rate.
C: Load Balancer name: Click this drop-down to select which of your Load Balancers you want to display metrics for.
D: Frontend name: Click this drop-down to select which of your Load Balancer’s frontends you want to display metrics for. You can select all attached frontends, or limit the display to only certain frontends.
E: Backend name: Click this drop-down to select which of your Load Balancer’s backends you want to display metrics for. You can select all attached backends, or limit the display to only certain backends.
In this section, you see various graphs which report on the status of different components of your Load Balancer.
Healthy loadbalancer backends: Shows how many of your Load Balancer’s backends currently have a healthy status. A backend is considered healthy if at least one of its backend servers is healthy and up.
Healthy loadbalancer backend servers: Shows how many of your Load Balancer’s backend servers are currently in a healthy state. A backend server is considered healthy if it passes its health checks, specifically if the number of failed health checks does not exceed the value set in the Unhealthy threshold parameter.
Backend servers health check: Shows, for each backend server identified by its IP address and the name of the frontend it is attached to, its current status (up (i.e. healthy), or down (unhealthy)).
“Backend name” health check: Shows, for each backend identified by its name, how many of its backend servers are currently in a healthy state.
In this section, you see various graphs detailing the delivered and received throughput for your Load Balancer. That is to say, you see the amount of data passing through its frontends, backends, and backend servers.
Tip
In these graphs, negative numbers represent sent/outgoing data, while positive numbers represent received/incoming data.
Frontend throughput bits per seconds: Data is reported for each frontend (in the example above, for two frontends called http and https). The total combined data is also shown. In each case, the graph shows the data received (from clients) and sent (to the backend).
Backend throughput bits per seconds: Data is reported for each backend (in the example above, for three backends called admin, growth-api and proxy). The total combined data is also shown. In each case, the graph shows the data received (from the frontend) and sent (to the backend server).
Backend server throughput bits per seconds: Data is reported for each backend server, identified by its IP address and the backend it is attached to. The total combined data is also shown. In each case, the graph shows the data received and sent.
In this section, you see various graphs detailing the current number of active connections for your Load Balancer.
Note
This section concerns connections over TCP protocol. However, in the case of a Load Balancer configured to use HTTP protocol, its data will still be reported here (as well as the Layer 7 section below) as the HTTP/HTTPS protocols are included within TCP protocol.
For each frontend, backend and backend server, you can view:
The number of current open connections.
The rate of new connections (i.e. the number of new connections, as opposed to pre-established connections, per second)
At the top of the dashboard, you can configure parameters, which control which logs are displayed. In addition to all the same parameters as for metrics, you can also filter for specific log values, and select the log level (info, warning, alert).